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

Method WhichRegions

Src/Extern/ProfParser/AMReX_BLProfStats.cpp:208–223  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

206
207// ----------------------------------------------------------------------
208std::set<int> BLProfStats::WhichRegions(int proc, Real t) {
209 std::set<int> whichRegions;
210 if(proc < 0 || proc >= regionTimeRanges.size()) {
211 return whichRegions;
212 }
213 Vector<Vector<TimeRange> > &rtr = regionTimeRanges[proc];
214 for(int rnum(0); rnum < rtr.size(); ++rnum) {
215 for(int range(0); range < rtr[rnum].size(); ++range) {
216 TimeRange &tr = rtr[rnum][range];
217 if(tr.Contains(t)) {
218 whichRegions.insert(rnum);
219 }
220 }
221 }
222 return whichRegions;
223}
224
225
226// ----------------------------------------------------------------------

Callers 1

RunSendRecvListMethod · 0.80

Calls 3

ContainsMethod · 0.80
sizeMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected