8{
12
13
14
15
16
17
18 iptr = tmpgrid = (
Int*) malloc(
Mpval(nprow)*
Mpval(npcol)*
sizeof(*tmpgrid) );
20 {
22 for (j=0; j < i; j++) iptr[j] = j;
23 }
24 else
25 {
26 for (j=0; j <
Mpval(npcol); j++)
27 {
28 for (i=0; i <
Mpval(nprow); i++) iptr[i] = i *
Mpval(npcol) + j;
30 }
31 }
32#if (INTFACE == C_CALL)
34#else
36#endif
37 free(tmpgrid);
38}
F_VOID_FUNC blacs_gridmap_(Int *ConTxt, Int *usermap, Int *ldup, Int *nprow0, Int *npcol0)