Skip to content
Snippets Groups Projects
Commit e070d16a authored by RIETTE Sébastien's avatar RIETTE Sébastien
Browse files

S. Riette 10 Mar 2023: small bugfixes for rain_ice_old testprog

parent c613f335
No related branches found
No related tags found
No related merge requests found
...@@ -508,7 +508,7 @@ subroutine print_diff_1(array, ref) ...@@ -508,7 +508,7 @@ subroutine print_diff_1(array, ref)
absval = max(abs(array(i)), abs(ref(i))) absval = max(abs(array(i)), abs(ref(i)))
if (absval .gt. 0.) then if (absval .gt. 0.) then
if (abs(array(i) - ref(i))/absval .gt. threshold) then if (abs(array(i) - ref(i))/absval .gt. threshold) then
write(output_unit, '(2i4, 4e16.6)') i, array(i), ref(i), abs(array(i) - ref(i)), abs(array(i) - ref(i))/absval write(output_unit, '(1i4, 4e16.6)') i, array(i), ref(i), abs(array(i) - ref(i)), abs(array(i) - ref(i))/absval
endif endif
endif endif
enddo enddo
......
...@@ -263,8 +263,8 @@ if [ $check -eq 1 ]; then ...@@ -263,8 +263,8 @@ if [ $check -eq 1 ]; then
fi fi
if [ $te -eq 0 ]; then if [ $te -eq 0 ]; then
set +e set +e
mess=$(cmp <(cat $file1 | sed 's/\.\.//g' | sed 's/~=//g' | sed 's/!=//g') \ mess=$(cmp <(cat $file1 | sed 's/\.\.//g' | sed 's/~=//g' | sed 's/!=//g' | grep -v 'Total time: ') \
<(cat $file2 | sed 's/\.\.//g' | sed 's/~=//g' | sed 's/!=//g') 246 246 2>&1) <(cat $file2 | sed 's/\.\.//g' | sed 's/~=//g' | sed 's/!=//g' | grep -v 'Total time: ') 246 246 2>&1)
te=$? te=$?
set -e set -e
#The use of "<()" bash syntax replaces the actual file name seen by cmp #The use of "<()" bash syntax replaces the actual file name seen by cmp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment