- typdef for MPI_Comm add in non-parallel case

- "struct H5PartFile" extended:
	* new member for step name
	* new member to specify the format of the step number
	* new member to flag whether the file is still empty
This commit is contained in:
2007-04-19 09:17:34 +00:00
parent b9d82c2fda
commit 7240f26378
+11 -3
View File
@@ -14,6 +14,10 @@ __attribute__ ((format (printf, 3, 4)))
#endif
;
#ifndef PARALLEL_IO
typedef unsigned long MPI_Comm;
#endif
struct H5BlockFile;
/**
@@ -25,7 +29,11 @@ struct H5BlockFile;
H5PartCloseFile().
*/
struct H5PartFile {
hid_t file;
hid_t file;
char *groupname_step;
int stepno_width;
int empty;
h5part_int64_t timestep;
hsize_t nparticles;
@@ -60,12 +68,12 @@ struct H5PartFile {
The index of the processor this process is running on.
*/
int myproc;
#ifdef PARALLEL_IO
/**
MPI comnunicator
*/
MPI_Comm comm;
#endif
struct H5BlockStruct *block;
h5part_int64_t (*close_block)(struct H5PartFile *f);
};