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

Function main

tests/two_dimensional.cpp:317–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315}
316
317int main(int argc, char **argv) {
318 initialize mpi(argc, argv);
319 verbosity = 0;
320 master_printf("Testing 2D...\n");
321
322 for (int s = 2; s < 4; s++)
323 if (!test_pml(one, s)) meep::abort("error in test_pml vacuum\n");
324
325 for (int s = 2; s < 4; s++)
326 if (!test_pml_tm(one, s)) meep::abort("error in test_pml_tm vacuum\n");
327
328 for (int s = 2; s < 4; s++)
329 if (!test_pml_te(one, s)) meep::abort("error in test_pml_te vacuum\n");
330
331 for (int s = 2; s < 4; s++)
332 if (!test_metal(one, s)) meep::abort("error in test_metal vacuum\n");
333 // if (!test_metal(one, 200)) meep::abort("error in test_metal vacuum\n");
334
335 for (int s = 2; s < 5; s++)
336 if (!test_metal(targets, s)) meep::abort("error in test_metal targets\n");
337 // if (!test_metal(targets, 60)) meep::abort("error in test_metal targets\n");
338
339 for (int s = 2; s < 5; s++)
340 if (!test_periodic(targets, s)) meep::abort("error in test_periodic targets\n");
341 // if (!test_periodic(one, 200))
342 // meep::abort("error in test_periodic targets\n");
343
344 for (int s = 2; s < 4; s++)
345 if (!test_periodic_tm(one, s)) meep::abort("error in test_periodic_tm vacuum\n");
346
347 return 0;
348}

Callers

nothing calls this directly

Calls 8

master_printfFunction · 0.85
abortFunction · 0.85
test_pml_tmFunction · 0.85
test_pml_teFunction · 0.85
test_periodic_tmFunction · 0.85
test_pmlFunction · 0.70
test_metalFunction · 0.70
test_periodicFunction · 0.70

Tested by

no test coverage detected