[OMPI users] file view with struct data type

2011-11-25 Thread Thomas Anderson
I read some examples either to open file/ set file view[1][2] or to use struct data type[3] only. How if a developer wants to set file view with struct data type (as file type)? I notice that mpi_set_view requires parameters `MPI_Datatype etype, MPI_Datatype filetype.' However, for struct data type

[OMPI users] Type struct question

2011-11-11 Thread Thomas Anderson
I read doc explaining struct at http://www.open-mpi.org/doc/v1.4/man3/MPI_Type_struct.3.php I haven't used mpi so I have a newbie question. In the example function MPI_Type_struct(3, {2, 1, 3}, {0, 16, 26}, {MPI_FLOAT, type1, MPI_CHAR} ) is executed where type1 is consisted of {(double,0)(char,8)