From 9194a7b10fc5100ee57a1dd2b47a2fd6e309950a Mon Sep 17 00:00:00 2001 From: Emily Bourne Date: Tue, 9 Apr 2024 07:14:46 +0000 Subject: [PATCH] Don't require bit reproducable 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 -------------------------------------------- --- tests/geometryXVx/sheath/test_sheath_restart.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/geometryXVx/sheath/test_sheath_restart.sh b/tests/geometryXVx/sheath/test_sheath_restart.sh index 9e50149c4..24583fc35 100644 --- a/tests/geometryXVx/sheath/test_sheath_restart.sh +++ b/tests/geometryXVx/sheath/test_sheath_restart.sh @@ -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