Ignore:
Timestamp:
Jun 11, 2020, 10:46:33 PM (5 years ago)
Author:
jvatant
Message:

Titan GCM: Enable to switch off microphysics compiling for old compilo such as CICLAD, in this case just use -cpp OLD_COMPILO in your makelmdz_fcm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/makelmdz_fcm

    r2339 r2369  
    458458# for Titan add microphysics dependencies
    459459if [[ -d ${LIBFGCM}/muphy${physique} ]] ; then
    460 
    461   # add muphy{physique} to the list of files to compile.
    462   MUPHY_PATH="${LIBFGCM}/muphy${physique}"
    463   # For Titan as we embbed some libraries with CPP keys, we define them:
    464   #   -DPREC={32|64|80} real kind precision (32: simple, 64: double, 80: extended double)
    465   #   -DHAVE_NC_FTN=1 (mandatory: for support of NetCDF in lintnd).
    466   CPP_KEY="$CPP_KEY PREC=64 HAVE_NC_FTN=1"
    467   if [[ "${physique}" == "titan" ]] ; then
    468     echo "Yaahh you're about to use YAMMS in a GCM..."
     460  if ! [ `echo $CPP_KEY | grep -c "OLD_COMPILO"` -gt 0 ] ; then
     461    # add muphy{physique} to the list of files to compile.
     462    MUPHY_PATH="${LIBFGCM}/muphy${physique}"
     463    # For Titan as we embbed some libraries with CPP keys, we define them:
     464    #   -DPREC={32|64|80} real kind precision (32: simple, 64: double, 80: extended double)
     465    #   -DHAVE_NC_FTN=1 (mandatory: for support of NetCDF in lintnd).
     466    CPP_KEY="$CPP_KEY PREC=64 HAVE_NC_FTN=1"
     467    if [[ "${physique}" == "titan" ]] ; then
     468      echo "Yaahh you're about to use YAMMS in a GCM..."
     469    fi
    469470  fi
    470471fi
Note: See TracChangeset for help on using the changeset viewer.