print_Task_Grid

print the multi-dimensional continuous block data, Grid_data[], according to the given size in each dimension ii, bndry_lgths[ ii ]. bndry_lgths[ ii=0 ] corresponds to the maximum size of the fastest changing index of array Grid_data[]. The data is printed out according to their memory layout and is splitted into the form of 2-dimensional table. The fastest changing index becomes table's column index and the second fastest changing index becomes table's row index. The rest of the indices are used to label all the 2-dimensional tables printed.

Synopsis


void print_Task_Grid(
                      FILE         *fout,
                      int           Ndim,
                      int           bndry_lgths[],
                      MPI_Datatype  MD_type,
                      void         *Grid_data
                    )

Unmodified Input Variables

fout - File Pointer to the output.
Ndim - Dimensionality of the multi-dimensional block Array Grid_data[].
bndry_lgths - Integer Array of size Ndim. Each element, bndry_lgths[ ii ], is the maximum size in the ii-th dimension.
MD_type - MPI_Datatype of the block data, Grid_data[].
Grid_data - Void Pointer to the continuous block data.

Notes on the Fortran routines

The Fortran counterparts of this C routines are called print_Task_xxGrid( ch_prt, Ndim, bdy_lgths, Grid_data ) with Ndim, bdy_lgths[], Grid_data[] defined similarly as in C routines, except ch_prt is an integer for the fortran file channel number. Also for different datatype of Grid_data[], xx in the subroutine name will be different.

  integer      array Grid_data:  xx=i
  real*4       array Grid_data:  xx=r4
  real*8       array Grid_data:  xx=r8
  complex*8    array Grid_data:  xx=c4
  complex*16   array grid_data:  xx=c8

Definition Location

This subroutine is NOT defined in the librgx.a. But the source code can be found in the distribution tree.

Location:../src/librgx/print_Task_Grid.c