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

Function InitRegion

Tools/AMRProfParser/TestCodes/AMRProfTest0.cpp:36–50  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

34
35//---------------------------------------------------------------
36void InitRegion() {
37 BL_PROFILE_REGION_START("R::InitRegion");
38 BL_PROFILE("InitRegion()");
39 int nProcs(ParallelDescriptor::NProcs());
40 int myProc(ParallelDescriptor::MyProc());
41 double sleepTime(1 + myProc * 0.1);
42
43 amrex::Print(Print::AllProcs) << myProc << "::InitRegion = "
44 << sleepTime << " s." << endl;
45
46 SleepProcTimes(sleepTime);
47
48 BL_PROFILE_REGION_STOP("R::InitRegion");
49
50}
51
52//---------------------------------------------------------------
53void ComputeRegion() {

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