Skip to content

Commit 97ef367

Browse files
committed
Minor changes to fix regression test failure.
1 parent 292f039 commit 97ef367

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.gitattributes

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ test/ref_solns/interpInlet/restart_output.sol.h5 filter=lfs diff=lfs merge=lfs -
2727
test/meshes/spongeBox.msh filter=lfs diff=lfs merge=lfs -text
2828
test/ref_solns/sgsLoMach/restart_output.sol.h5 filter=lfs diff=lfs merge=lfs -text
2929
test/ref_solns/aveLoMach/restart_output.sol.h5 filter=lfs diff=lfs merge=lfs -text
30-
test/ref_solns/flow1d_coupling.sol.h5 filter=lfs diff=lfs merge=lfs -text
30+
test/ref_solns/flow1d_coupling.h5 filter=lfs diff=lfs merge=lfs -text

test/Makefile.am

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ EXTRA_DIST = tap-driver.sh test_tps_splitcomm.py soln_differ inputs meshes lte-
3535
ref_solns/reactBinDiff/*.h5 \
3636
ref_solns/reactSingleRx/*.h5 \
3737
ref_solns/reactTable/*.h5 \
38-
ref_solns/flow1d_coupling.sol.h5 \
38+
ref_solns/flow1d_coupling.h5 \
3939
vpath.sh die.sh count_gpus.sh sniff_mpirun.sh \
4040
cyl3d.gpu.test cyl3d.mflow.gpu.test wedge.gpu.test \
4141
averaging.gpu.test cyl3d.test cyl3d.gpu.python.test cyl3d.mflow.test cyl3d.dtconst.test \

test/test_flow1d_coupling.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@
5858
error = np.abs(power_1d - power_2d)/np.abs(power_2d)
5959
assert error < 1e-5, '1d and 2d Joule heating integrals should match'
6060

61+
SOLN_FILE = "flow1d_coupling.sol.h5"
6162
# Save output with hdf5
62-
with h5py.File("flow1d_coupling.sol.h5", "w") as f:
63+
with h5py.File(SOLN_FILE, "w") as f:
6364
_ = f.create_dataset('input/axial_coordinates', data=z_1d)
6465
_ = f.create_dataset('input/torch_radius', data=radius_1d)
6566
_ = f.create_dataset('input/plasma_conductivity', data=cond_1d)

0 commit comments

Comments
 (0)