---------------------------------------------------------------
| 51 | |
| 52 | //--------------------------------------------------------------- |
| 53 | void 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 | //--------------------------------------------------------------- |
| 73 | void ConcludeRegion() { |
no test coverage detected