----------------------------------------------------------------------
| 90 | |
| 91 | // ---------------------------------------------------------------------- |
| 92 | IntVect 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 | // ---------------------------------------------------------------------- |