Ignore:
Timestamp:
Feb 25, 2013, 11:32:51 AM (12 years ago)
Author:
emillour
Message:

Mars and Generic model:

  • added "-fp-model precise" option when compiling with ifort, which fixes issues with tracer mass conservation in the dynamics (NB: these occur namely when running in single precision; double precision computations seem OK without this option).

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/makegcm_ifort

    r882 r889  
    2626setenv LIBOGCM $LMDGCM/libo
    2727## NetCDF Libraries: what follows is OK on GNOME
    28 #  setenv NCDFLIB /usr/local/lib
    29 #  setenv NCDFINC /usr/local/include
    30 ####
    31 
    32 ## NetCDF Libraries: what follows is OK on LMD network
    33 setenv NCDFLIB /donnees/emlmd/netcdf64-4.0.1_ifort/lib
    34 setenv NCDFINC /donnees/emlmd/netcdf64-4.0.1_ifort/include
    35 ####
     28if ( `hostname` == n201 ) then
     29    echo "GNOME cluster"
     30    setenv NCDFLIB /usr/local/lib
     31    setenv NCDFINC /usr/local/include
     32else
     33   # NetCDF, on LMD farm:
     34    echo "LMD machines"
     35    setenv NCDFLIB /donnees/emlmd/netcdf64-4.0.1_ifort/lib
     36    setenv NCDFINC /donnees/emlmd/netcdf64-4.0.1_ifort/include
     37endif
    3638
    3739setenv localdir "`pwd`"
     
    183185   #NB: on gnome -O3 ==> NaNs ...
    184186   if (`grep sse4_2 /proc/cpuinfo` !=) then
    185       set optim=" -O2 -ip -mkl=sequential -align all -xSSE4.2 -static"
    186       set optim90=" -O2 -ip -mkl=sequential -align all -xSSE4.2 -static"
    187       set optimtru90=" -O2 -ip -mkl=sequential -align all -xSSE4.2 -static"
     187      set optim=" -O2 -fp-model precise -ip -mkl=sequential -align all -xSSE4.2 -static"
     188      set optim90=" -O2 -fp-model precise -ip -mkl=sequential -align all -xSSE4.2 -static"
     189      set optimtru90=" -O2 -fp-model precise -ip -mkl=sequential -align all -xSSE4.2 -static"
    188190   else
    189       set optim=" -O2 -ip -mkl=sequential -align all -static"
    190       set optim90=" -O2 -ip -mkl=sequential -align all -static"
    191       set optimtru90=" -O2 -ip -mkl=sequential -align all -static"
     191      set optim=" -O2 -fp-model precise -ip -mkl=sequential -align all -static"
     192      set optim90=" -O2 -fp-model precise -ip -mkl=sequential -align all -static"
     193      set optimtru90=" -O2 -fp-model precise -ip -mkl=sequential -align all -static"
    192194   endif
    193195#   set opt_link=" -Mfree -lpgf90 -lpgftnrtl -lpghpf -lpghpf2 -L$NCDFLIB -lnetcdf -Bstatic "
Note: See TracChangeset for help on using the changeset viewer.