[MPICH] fortran: CALL MPI_FILE_OPEN specifying file format
Rajeev Thakur
thakur at mcs.anl.gov
Sat Feb 9 19:15:02 CST 2008
It is always unformatted. You cannot write formatted with MPI-IO. If you
write an array of 100 integers, the file will contain exactly 100 integers
in binary.
Rajeev
> -----Original Message-----
> From: owner-mpich-discuss at mcs.anl.gov
> [mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of Stephen Wornom
> Sent: Saturday, February 09, 2008 10:40 AM
> To: mpich-discuss at mcs.anl.gov
> Subject: [MPICH] fortran: CALL MPI_FILE_OPEN specifying file format
>
> I use fortarn. How does one specify that the file be written
> "formatted"? Is "unformatted" the default?
> Thanks,
> Stephen
>
> CALL MPI_FILE_OPEN( MPI_COMM_WORLD, filnam(1:ilength),
> 1 MPI_MODE_WRONLY + MPI_MODE_CREATE,
> 2 MPI_INFO_NULL, fh ,ierr)
>
> The above writes the file solf.000000.data
> the command
> file solf.000000.data
> solf.000000.data: data
>
> What is the relation between the "data" and say "unformatted?"
>
>
More information about the mpich-discuss
mailing list