MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / PreBuildDirectorHierarchy

Function PreBuildDirectorHierarchy

Src/Base/AMReX_PlotFileUtil.cpp:56–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54
55
56void
57PreBuildDirectorHierarchy (const std::string &dirName,
58 const std::string &/*subDirPrefix*/,
59 int nSubDirs, bool callBarrier)
60{
61 UtilCreateCleanDirectory(dirName, false); // ---- dont call barrier
62 for(int i(0); i < nSubDirs; ++i) {
63 const std::string &fullpath = LevelFullPath(i, dirName);
64 UtilCreateCleanDirectory(fullpath, false); // ---- dont call barrier
65 }
66
67 if(callBarrier) {
68 ParallelDescriptor::Barrier();
69 }
70}
71
72
73void

Callers 5

WriteCheckpointFileMethod · 0.85
write_to_chkpt_fileMethod · 0.85
WriteMultiLevelPlotfileFunction · 0.85

Calls 2

LevelFullPathFunction · 0.85
BarrierFunction · 0.85

Tested by

no test coverage detected