Skip to content

Commit

Permalink
improve nan comparison
Browse files Browse the repository at this point in the history
fortran intel compiler is not yet well configured
  • Loading branch information
carlocamilloni committed Nov 29, 2023
1 parent a5410b2 commit 863d00d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/linuxWF.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,11 @@ jobs:
sudo apt-get install intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic intel-oneapi-mkl intel-oneapi-mkl-devel intel-oneapi-compiler-fortran
source /opt/intel/oneapi/setvars.sh
printenv >> $GITHUB_ENV
which icx
which ifx
echo "CXX=icpx" >> $GITHUB_ENV
echo "CC=icx" >> $GITHUB_ENV
echo "FC=ifort" >> $GITHUB_ENV
echo "FC=ifx" >> $GITHUB_ENV
- name: Install MPI
# install MPI at last since it modifies CC and CXX
if: contains( matrix.variant, '-mpi-' )
Expand Down
4 changes: 2 additions & 2 deletions regtest/scripts/fixzeroes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ grep -E '[^[:print:]]' $file 2> /dev/null && exit 0

sed "s/-\(0\.0*0 \)/ \1/g;
s/-\(0\.0*0$\)/ \1/g" $file > $file.$$.tmp
sed "s/-\(nan \)/ \1/g;
s/-\(nan$\)/ \1/g" $file.$$.tmp > $file.$$.tmp2
sed "s/-\(nan \)/\1/g;
s/-\(nan$\)/\1/g" $file.$$.tmp > $file.$$.tmp2
mv $file.$$.tmp2 $file

0 comments on commit 863d00d

Please sign in to comment.