MCPcopy Create free account
hub / github.com/NanoComp/meep / main

Function main

tests/three_d.cpp:270–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270int main(int argc, char **argv) {
271 initialize mpi(argc, argv);
272 verbosity = 0;
273 master_printf("Testing 3D...\n");
274
275 if (!test_pml(one)) meep::abort("error in test_pml vacuum\n");
276
277 for (int s = 2; s < 7; s++)
278 if (!test_periodic(targets, s)) meep::abort("error in test_periodic targets\n");
279
280 for (int s = 2; s < 8; s++)
281 if (!test_metal(one, s)) meep::abort("error in test_metal vacuum\n");
282
283 for (int s = 2; s < 4; s++)
284 if (!test_pml_splitting(one, s)) meep::abort("error in test_pml_splitting vacuum\n");
285
286 if (!test_1d_cell_bloch()) meep::abort("error in test_1d_cell_bloch\n");
287
288 if (!test_pml_auxiliary_field_allocation())
289 meep::abort("error in test_pml_auxiliary_field_allocation\n");
290
291 return 0;
292}

Callers

nothing calls this directly

Calls 8

master_printfFunction · 0.85
abortFunction · 0.85
test_pml_splittingFunction · 0.85
test_1d_cell_blochFunction · 0.85
test_pmlFunction · 0.70
test_periodicFunction · 0.70
test_metalFunction · 0.70

Tested by

no test coverage detected