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

Method getTotalThreads

src/Reader/AsagiModule.cpp:86–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86int AsagiModule::getTotalThreads() {
87 int totalThreads = 1;
88
89#ifdef _OPENMP
90 totalThreads = omp_get_max_threads();
91 if (seissol::useCommThread(seissol::MPI::mpi)) {
92 totalThreads++;
93 }
94#endif // _OPENMP
95
96 return totalThreads;
97}
98
99void AsagiModule::preMPI() {
100 // Communication threads required

Callers

nothing calls this directly

Calls 1

useCommThreadFunction · 0.85

Tested by

no test coverage detected