Skip to content

Commit 60afcd8

Browse files
authored
Keep SPECTRE phiedge in the axis_volume test helper (#612)
SIMPLE main is red since [libneo](https://github.com/itpplasma/libneo) #444 (99f86323), which makes the SPECTRE reader require `input/physics/phiedge`. `axis_volume()` in `test/tests/spectre_test_utils.py` rewrites the fixture to a single volume but dropped that scalar, so `simple.x` stopped with `HDF5 object not found: phiedge` in test_spectre_gc_rk45, test_spectre_sympl_volume, test_spectre_construction_grid and test_spectre_validation (and the _full variants). The helper now copies the global edge flux unchanged, as real SPECTRE output always carries it; oracles are untouched. Chris&AI
1 parent 6eca3de commit 60afcd8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎test/tests/spectre_test_utils.py‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ def write(key, values):
3232

3333
for key in ("input/physics/Igeometry", "input/physics/Nfp",
3434
"input/physics/Mpol",
35-
"input/physics/Ntor", "output/mn", "output/im", "output/in"):
35+
"input/physics/Ntor", "input/physics/phiedge",
36+
"output/mn", "output/im", "output/in"):
37+
# phiedge is SPECTRE's global edge toroidal flux, kept unchanged
38+
# because real SPECTRE output always carries it and libneo's
39+
# reader requires it.
3640
write(key, src[key][:])
3741
for key in ("input/physics/Nvol", "output/Mvol"):
3842
write(key, [1])

0 commit comments

Comments
 (0)