| 1525 | } |
| 1526 | |
| 1527 | void writeToFileSynch(char* fn, const string& contents) { |
| 1528 | |
| 1529 | // master node writes |
| 1530 | if (getQuESTEnv().rank == 0) { |
| 1531 | FILE* file = fopen(fn, "w"); |
| 1532 | fputs(contents.c_str(), file); |
| 1533 | fclose(file); |
| 1534 | } |
| 1535 | |
| 1536 | // other nodes wait |
| 1537 | syncQuESTEnv(); |
| 1538 | } |
| 1539 | |
| 1540 | void deleteFilesWithPrefixSynch(char* prefix) { |
| 1541 |
nothing calls this directly
no test coverage detected