Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
◆ CLOSE_LOG
#define CLOSE_LOG |
( |
| ) |
fclose(_logML) |
◆ CREATE_LOG
#define CREATE_LOG |
( |
| ) |
FILE * _logML = fopen(formatString("nodo%02d.log", node->rank).c_str(), "w+") |
◆ IS_MASTER
#define IS_MASTER (node->rank == 0) |
◆ LOG
#define LOG |
( |
|
msg | ) |
do{fprintf(_logML, "%s\t%s\n", getCurrentTimeString(), msg); fflush(_logML); }while(0) |
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 63 of file mpi_write_test.cpp.
69 for (
int i = 1;
i < argc;
i++)
71 if (strcmp(argv[
i],
"-i") == 0)
76 else if (strcmp(argv[i],
"--xdim") == 0)
81 else if (strcmp(argv[i],
"--ydim") == 0)
86 else if (strcmp(argv[i],
"--ndim") == 0)
105 unlink(fnIN.c_str());
114 for (
int var = 1; var <= nDim; var++)
119 std::cerr <<
"ssIN: value" << ss <<
" " << (double)rank << std::endl;
120 Iaux().initConstant((
double)rank);
130 for (
int var = 1; var <= nDim; var++)
132 double value = (double) (var%size);
134 Iaux.read(ss.c_str());
136 Iaux().computeStats(avg,std,min,max);
138 ABS(avg-value)> 0.00001 ||
139 ABS(std-0)> 0.00001 ||
140 ABS(min-value)> 0.00001 ||
141 ABS(max-value)> 0.00001
144 std::cerr <<
"Error in image :" << var
151 std::cerr <<
"errors:" << errors << std::endl;
void min(Image< double > &op1, const Image< double > &op2)
void max(Image< double > &op1, const Image< double > &op2)
void createEmptyFile(const FileName &filename, int xdim, int ydim, int Zdim, size_t select_img, bool isStack, int mode, int _swapWrite, const MDRowVec *md)
String formatString(const char *format,...)
◆ distributor
◆ node