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

Function TopIVFromProcNumber

Src/Extern/ProfParser/AMReX_CommProfStats.cpp:92–106  ·  view source on GitHub ↗

----------------------------------------------------------------------

Source from the content-addressed store, hash-verified

90
91// ----------------------------------------------------------------------
92IntVect TopIVFromProcNumber(const int procnum) {
93 IntVect iv;
94 std::map<int, IntVect>::iterator it = pNumTopIVMap.find(procnum);
95 if(it == pNumTopIVMap.end()) {
96 std::cerr << "**** Error in TopIVFromProcNumber: procnum not found: "
97 << procnum << std::endl;
98 } else {
99 iv = it->second;
100 if(iv != pNumTopIVMap[procnum]) {
101 std::cerr << "**** Error in TopIVFromProcNumber: procnum not matched: "
102 << procnum << std::endl;
103 }
104 }
105 return iv;
106}
107
108
109// ----------------------------------------------------------------------

Callers 1

SendRecvDataMethod · 0.85

Calls 1

endMethod · 0.45

Tested by

no test coverage detected