---------------------------------------------------------------
| 139 | |
| 140 | //--------------------------------------------------------------- |
| 141 | int 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 | // -------------------------------------------------------------- |
nothing calls this directly
no test coverage detected