| 315 | } |
| 316 | |
| 317 | int 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 | } |
nothing calls this directly
no test coverage detected