Changeset 2369


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

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/arch/arch-CICLADifort.fcm

    r2163 r2369  
    44%MAKE                make
    55%FPP_FLAGS           -P -traditional
    6 %FPP_DEF             NC_DOUBLE LAPACK BLAS SGEMV=DGEMV SGEMM=DGEMM
     6%CPP_FLAGS           -P
     7%FPP_DEF             NC_DOUBLE LAPACK BLAS SGEMV=DGEMV SGEMM=DGEMM OLD_COMPILO
     8%CPP_DEF             LAPACK
    79%BASE_FFLAGS         -real-size 64 -ip -mkl=parallel -fp-model precise -align common -mcmodel=large -shared-intel
    810%PROD_FFLAGS         -O2
    911%DEV_FFLAGS          -O2
    1012%DEBUG_FFLAGS        -fpe0 -g -no-ftz -check -traceback -ftrapuv -fp-stack-check -O0
     13%C_COMPILER          $MPI_BIN/mpicc
     14%C_OPTIM             -O2 -ip
    1115%MPI_FFLAGS          -I$MPI_INCLUDE
    1216%OMP_FFLAGS         
  • 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
  • trunk/LMDZ.TITAN/libf/phytitan/calmufi.F90

    r2242 r2369  
    22
    33SUBROUTINE calmufi(dt, plev, zlev, play, zlay, g3d, temp, pq, zdqfi, zdq)
     4
     5! Old compilers do not handle modern Fortran in microphysics
     6#ifndef OLD_COMPILO
     7
    48  !! Interface subroutine to YAMMS model for Titan LMDZ GCM.
    59  !!
     
    188192  zdq(:,:,:) = zdq(:,:,:) / dt
    189193
     194#endif
     195
    190196END SUBROUTINE calmufi
  • trunk/LMDZ.TITAN/libf/phytitan/inimufi.F90

    r1984 r2369  
    11subroutine inimufi(ptimestep)
     2
     3#ifndef OLD_COMPILO
    24
    35  use mmp_gcm
     
    8890   ENDIF
    8991
     92#endif
     93
    9094end subroutine inimufi
Note: See TracChangeset for help on using the changeset viewer.