MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / writeToFileSynch

Function writeToFileSynch

tests/deprecated/test_utilities.cpp:1527–1538  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1525}
1526
1527void 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
1540void deleteFilesWithPrefixSynch(char* prefix) {
1541

Callers

nothing calls this directly

Calls 2

getQuESTEnvFunction · 0.85
syncQuESTEnvFunction · 0.85

Tested by

no test coverage detected