Skip to content

Commit

Permalink
Don't require bit reproducable
Browse files Browse the repository at this point in the history
Use system epsilon tolerance for the restart test to allow the simulation to pass when there is a difference of 1e-17.

See merge request gysela-developpers/gyselalibxx!453

--------------------------------------------
  • Loading branch information
EmilyBourne committed Apr 9, 2024
1 parent 16b15c4 commit 9194a7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/geometryXVx/sheath/test_sheath_restart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,19 @@ sed -i 's/^ nbiter: .*/ nbiter: 2/' sheath_restart.yaml
sed -i 's/^ time_diag: .*/ time_diag: 0.5/' sheath_restart.yaml

h5ls -d ${PWD}/VOICEXX_00005.h5/time_saved ${RSTDIR}/VOICEXX_00005.h5/time_saved
command="h5diff -r ${PWD}/VOICEXX_00005.h5 ${RSTDIR}/VOICEXX_00005.h5 time_saved"
command="h5diff --use-system-epsilon -r ${PWD}/VOICEXX_00005.h5 ${RSTDIR}/VOICEXX_00005.h5 time_saved"
eval $command
if [ $? -ne 0 ]; then
exit 1
fi

command="h5diff -r ${PWD}/VOICEXX_00005.h5 ${RSTDIR}/VOICEXX_00005.h5 electrostatic_potential"
command="h5diff --use-system-epsilon -r ${PWD}/VOICEXX_00005.h5 ${RSTDIR}/VOICEXX_00005.h5 electrostatic_potential"
eval $command
if [ $? -ne 0 ]; then
exit 1
fi

command="h5diff -r ${PWD}/VOICEXX_00005.h5 ${RSTDIR}/VOICEXX_00005.h5 fdistribu"
command="h5diff --use-system-epsilon -r ${PWD}/VOICEXX_00005.h5 ${RSTDIR}/VOICEXX_00005.h5 fdistribu"
eval $command
if [ $? -ne 0 ]; then
exit 1
Expand Down

0 comments on commit 9194a7b

Please sign in to comment.