... | ... | @@ -2,7 +2,28 @@ |
|
|
:TOC:
|
|
|
:numbered:
|
|
|
|
|
|
== Open file in collective mode
|
|
|
== Open file with default properties
|
|
|
C implementation
|
|
|
|
|
|
----
|
|
|
#include "H5hut.h"
|
|
|
|
|
|
int
|
|
|
main (
|
|
|
int argc,
|
|
|
char** argv
|
|
|
) {
|
|
|
MPI_Init (&argc, &argv);
|
|
|
|
|
|
h5_file_t f = H5OpenFile ("testfile.h5", H5_O_WRONLY, H5_PROP_DEFAULT);
|
|
|
H5CloseFile (f);
|
|
|
|
|
|
MPI_Finalize ();
|
|
|
return 0;
|
|
|
}
|
|
|
----
|
|
|
|
|
|
== Open file in independent mode
|
|
|
C implementation
|
|
|
|
|
|
----
|
... | ... | @@ -17,7 +38,7 @@ main ( |
|
|
MPI_Comm comm = MPI_COMM_WORLD;
|
|
|
|
|
|
h5_prop_t prop = H5CreateFileProp ();
|
|
|
H5SetPropFileMPIOCollective (prop, &comm);
|
|
|
H5SetPropFileMPIOIndependent (prop, &comm);
|
|
|
h5_file_t f = H5OpenFile ("testfile.h5", H5_O_WRONLY, prop);
|
|
|
H5CloseProp (prop);
|
|
|
H5CloseFile (f);
|
... | ... | |