Commit 233a1f6
Add build-flag compatibility checks to Python case validator
Move three Fortran @:PROHIBIT checks that test case parameters against
build configuration flags into case_validator.py, so they fire before
any binary is invoked rather than at Fortran runtime:
- parallel_io = T requires --mpi (all stages, via check_build_flags)
- precision = 2 requires no --single (post_process, in check_output_format)
- 3D cylindrical + p > 0 requires no --single (simulation only,
via check_geometry_precision_simulation)
CFG() from state.py carries the active build config (mpi, single, mixed).
During standalone './mfc.sh validate', CFG() holds defaults (mpi=T,
single=F) so these checks do not produce false positives.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 8c7a747 commit 233a1f6
2 files changed
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
1794 | 1795 | | |
1795 | 1796 | | |
1796 | 1797 | | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
1797 | 1802 | | |
1798 | 1803 | | |
1799 | 1804 | | |
| |||
2330 | 2335 | | |
2331 | 2336 | | |
2332 | 2337 | | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
| 2343 | + | |
| 2344 | + | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
| 2350 | + | |
| 2351 | + | |
| 2352 | + | |
| 2353 | + | |
| 2354 | + | |
| 2355 | + | |
| 2356 | + | |
| 2357 | + | |
| 2358 | + | |
| 2359 | + | |
| 2360 | + | |
| 2361 | + | |
| 2362 | + | |
| 2363 | + | |
| 2364 | + | |
2333 | 2365 | | |
2334 | 2366 | | |
2335 | 2367 | | |
2336 | 2368 | | |
2337 | 2369 | | |
2338 | 2370 | | |
2339 | 2371 | | |
| 2372 | + | |
2340 | 2373 | | |
2341 | 2374 | | |
2342 | 2375 | | |
| |||
2359 | 2392 | | |
2360 | 2393 | | |
2361 | 2394 | | |
| 2395 | + | |
2362 | 2396 | | |
2363 | 2397 | | |
2364 | 2398 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
| 426 | + | |
| 427 | + | |
426 | 428 | | |
427 | 429 | | |
428 | 430 | | |
| |||
0 commit comments