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

Function main

Tools/AMRProfParser/TestCodes/BLProfCallTimes.cpp:141–179  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

139
140//---------------------------------------------------------------
141int main(int argc, char *argv[]) {
142
143 amrex::Initialize(argc, argv, false);
144
145 BL_PROFILE_REGION_START("main()");
146 BL_PROFILE_VAR("main()", pmain);
147
148 bool testFilter(false);
149 if(testFilter) {
150 BL_COMM_PROFILE_FILTER(BLProfiler::AllReduceR);
151 }
152 //TestReductionCalls();
153
154 ParallelDescriptor::Barrier();
155
156 TestFunctionCalls();
157
158 ParallelDescriptor::Barrier();
159
160 if(argc == 2) {
161 int oldcsfs(BLProfiler::GetCSFlushSize());
162 int csfs(atoi(argv[1]));
163 BLProfiler::SetCSFlushSize(csfs);
164 int newcsfs(BLProfiler::GetCSFlushSize());
165 if(ParallelDescriptor::IOProcessor()) {
166 std::cout << "---- Setting CSFlushSize to: " << csfs
167 << " :: old new = " << oldcsfs << " " << newcsfs << std::endl;
168 }
169 }
170
171 TestCommCalls();
172
173 ParallelDescriptor::Barrier();
174
175 BL_PROFILE_VAR_STOP(pmain);
176 BL_PROFILE_REGION_STOP("main()");
177
178 amrex::Finalize();
179}
180
181// --------------------------------------------------------------
182// --------------------------------------------------------------

Callers

nothing calls this directly

Calls 6

BarrierFunction · 0.85
TestFunctionCallsFunction · 0.85
IOProcessorFunction · 0.85
TestCommCallsFunction · 0.85
InitializeFunction · 0.50
FinalizeFunction · 0.50

Tested by

no test coverage detected