Skip to content

Commit

Permalink
Minor changes to fix regression test failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbigmanUT committed Aug 26, 2024
1 parent cf3a272 commit a1306c2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ test/ref_solns/interpInlet/restart_output.sol.h5 filter=lfs diff=lfs merge=lfs -
test/meshes/spongeBox.msh filter=lfs diff=lfs merge=lfs -text
test/ref_solns/sgsLoMach/restart_output.sol.h5 filter=lfs diff=lfs merge=lfs -text
test/ref_solns/aveLoMach/restart_output.sol.h5 filter=lfs diff=lfs merge=lfs -text
test/ref_solns/flow1d_coupling.sol.h5 filter=lfs diff=lfs merge=lfs -text
test/ref_solns/flow1d_coupling.h5 filter=lfs diff=lfs merge=lfs -text
2 changes: 1 addition & 1 deletion test/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ EXTRA_DIST = tap-driver.sh test_tps_splitcomm.py soln_differ inputs meshes lte-
ref_solns/reactBinDiff/*.h5 \
ref_solns/reactSingleRx/*.h5 \
ref_solns/reactTable/*.h5 \
ref_solns/flow1d_coupling.sol.h5 \
ref_solns/flow1d_coupling.h5 \
vpath.sh die.sh count_gpus.sh sniff_mpirun.sh \
cyl3d.gpu.test cyl3d.mflow.gpu.test wedge.gpu.test \
averaging.gpu.test cyl3d.test cyl3d.gpu.python.test cyl3d.mflow.test cyl3d.dtconst.test \
Expand Down
3 changes: 2 additions & 1 deletion test/test_flow1d_coupling.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@
error = np.abs(power_1d - power_2d)/np.abs(power_2d)
assert error < 1e-5, '1d and 2d Joule heating integrals should match'

SOLN_FILE = "flow1d_coupling.sol.h5"
# Save output with hdf5
with h5py.File("flow1d_coupling.sol.h5", "w") as f:
with h5py.File(SOLN_FILE, "w") as f:
_ = f.create_dataset('input/axial_coordinates', data=z_1d)
_ = f.create_dataset('input/torch_radius', data=radius_1d)
_ = f.create_dataset('input/plasma_conductivity', data=cond_1d)
Expand Down

0 comments on commit a1306c2

Please sign in to comment.