MCPcopy Create free account
hub / github.com/SeisSol/SeisSol / getMPIMode

Method getMPIMode

src/Reader/AsagiModule.cpp:70–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70AsagiMPIMode AsagiModule::getMPIMode() {
71#ifdef USE_MPI
72 std::string mpiModeName = utils::Env::get(EnvMPIMode, "WINDOWS");
73 if (mpiModeName == "WINDOWS")
74 return AsagiMPIMode::Windows;
75 if (mpiModeName == "COMM_THREAD")
76 return AsagiMPIMode::CommThread;
77 if (mpiModeName == "OFF")
78 return AsagiMPIMode::Off;
79
80 return AsagiMPIMode::Unknown;
81#else // USE_MPI
82 return AsagiMPIMode::Off;
83#endif // USE_MPI
84}
85
86int AsagiModule::getTotalThreads() {
87 int totalThreads = 1;

Callers

nothing calls this directly

Calls 1

getFunction · 0.85

Tested by

no test coverage detected