20 #include "wrapperMPI.hpp" 28 const char* _cPathChild,
32 char ctmpPath[D_FileNameMax]=
"";
33 strcat(ctmpPath,
"./output/");
34 strcat(ctmpPath, _cPathChild);
38 fprintf(
stdoutMPI,
"FileOpenError: %s.\n", ctmpPath);
51 const char* _cPathChild,
55 char ctmpPath[D_FileNameMax]=
"";
56 strcat(ctmpPath,
"./output/");
57 strcat(ctmpPath, _cPathChild);
58 *_fp = fopen(ctmpPath, _cmode);
61 fprintf(stdout,
"FileOpenError: %s.\n", ctmpPath);
FILE * stdoutMPI
File pointer to the standard output defined in InitializeMPI()
int childfopenALL(const char *_cPathChild, const char *_cmode, FILE **_fp)
All processes open file in output/ directory.
FILE * fopenMPI(const char *FileName, const char *mode)
MPI file I/O (open) wrapper. Only the root node (myrank = 0) should be open/read/write (small) parame...
int childfopenMPI(const char *_cPathChild, const char *_cmode, FILE **_fp)
Only the root process open file in output/ directory.