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

Function ComputeRegion

Tools/AMRProfParser/TestCodes/AMRProfTest0.cpp:53–70  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

51
52//---------------------------------------------------------------
53void ComputeRegion() {
54 BL_PROFILE_REGION_START("R::ComputeRegion");
55 BL_PROFILE("ComputeRegion()");
56
57 int nProcs(ParallelDescriptor::NProcs());
58 int myProc(ParallelDescriptor::MyProc());
59
60 double sleeptime(2 + (nProcs - 1) - myProc);
61
62 amrex::Print() << "Compute Region." << std::endl;
63
64 SleepProcTimes(sleeptime);
65
66 amrex::Print(Print::AllProcs) << myProc << "::ComputeRegion myProc = "
67 << sleeptime << " s." << endl;
68
69 BL_PROFILE_REGION_STOP("R::ComputeRegion");
70}
71
72//---------------------------------------------------------------
73void ConcludeRegion() {

Callers 1

mainFunction · 0.85

Calls 4

PrintClass · 0.85
SleepProcTimesFunction · 0.85
NProcsFunction · 0.50
MyProcFunction · 0.50

Tested by

no test coverage detected