Ignore:
Timestamp:
Aug 26, 2013, 9:21:41 AM (12 years ago)
Author:
emillour
Message:

Common dynamics; keep up with updates (seq and ) in LMDZ5 (up tio rev 1845):

  • General stuff:
  • makelmdz_fcm: add options -j # (compile using # threads) and -full, and to keep up

with Earth model, possibility to compile with various versions of orchidee

  • bld.cfg: adaptations to enable compiling using multiple threads
  • build_gcm: adaptations to enable compiling using multiple threads
  • makelmdz: keep up with Earth model: possibility to compile with various versions of orchidee + cosmetic changes + library directory name change
  • bibio:
  • wxios.F90 : Added for possible future use of XIOS library
  • filtrez:
  • mkl_dft_type.f90 & mkl_dfti.f90 : MKL (for MKL FFT) interface definitions
  • filtreg_mod : limit use of FFT to parallel mode
  • mod_filtre_fft.F90 & mod_filtre_fft_lov.F90 : swich to use parallel_lmdz
  • dyn3d:
  • abort_gcm.F : add things for xios
  • advtrac.F90 : minor change in CFL outputs
  • ce0l.F90 : indicesol.h is now module indice_sol_mod
  • comvert.h : cosmetic change on comments
  • gcm.F : add xios and use module indice_sol_mod (for INCA)
  • inigeom.F : move two computations outside loop
  • dyn3dpar:
  • parallel.F90 => parallel_lmdz.F90 : and change all the "use parallel" into "use parallel_lmdz" in all files in dyn3dpar
  • comvert.h : cosmetic change on comments
  • gcm.F : add xios and use module indice_sol_mod (for INCA)
  • leapfrog_p.F : add xios + correction for times in Newtonian case
  • ce0l.F90 : indicesol.h is now module indice_sol_mod
  • inigeom.F : move two computations outside loop

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/makelmdz

    r979 r1019  
    118118[-prod / -dev / -debug]    : compilation mode production (default) / developement / debug .
    119119[-c false/MPI1/MPI2]       : (Earth) coupling with ocean model : MPI1/MPI2/false (default: false)
    120 [-v false/true]            : (Earth) with or without vegetation (default: false)
     120[-v false/orchidee2.0/orchidee1.9/true] : version of the vegetation model to include (default: false)
     121          false       : no vegetation model
     122          orchidee2.0 : compile using ORCHIDEE 2.0 (or more recent version)
     123          orchidee1.9 : compile using ORCHIDEE up to the version including OpenMP in ORCHIDEE : tag 1.9-1.9.5(version AR5)-1.9.6
     124          true        : (obsolete; for backward compatibility) use ORCHIDEE tag 1.9-1.9.6
     125
    121126[-chimie INCA/false]       : (Earth) with INCA chemistry model or without (default: false)
    122127[-cosp cosp/false]         : (Earth) add the cosp model (default: false)
     
    292297LIB="$LIB  ${archfileopt}"
    293298
     299#NB some -I... might be located in the %FPP_FLAGS section of the arch file
     300archfileline=$( grep -i '^%FPP_FLAGS' arch.fcm )
     301archfileopt=$( echo "-I"${archfileline##*-I} ) ## to be improved...
     302INCLUDE="$INCLUDE ${archfileopt}"
     303
    294304if [[ "$physique" != "nophys" ]]
    295305then
     
    338348  FLAG_PARA=''
    339349else
    340   FLAG_PARA="par"
     350  FLAG_PARA="$paramem"
    341351fi
    342352
     
    383393fi
    384394
    385 if [[ "$veget" == "true" ]]
    386 then
     395if [ "$veget" = "true" -o "$veget" = "orchidee1.9" -o "$veget" = "orchidee2.0" ]
     396then
     397
     398   INCLUDE="${INCLUDE} -I${ORCH_INCDIR}"
    387399   CPP_KEY="$CPP_KEY CPP_VEGET"
    388    INCLUDE="${INCLUDE} -I${ORCH_INCDIR}"
    389    LIB="${LIB} -L${ORCH_LIBDIR} -l${LIBPREFIX}sechiba -l${LIBPREFIX}parameters -l${LIBPREFIX}stomate -l${LIBPREFIX}parallel -l${LIBPREFIX}orglob"
     400# temporary, for Orchidee versions 1.9.* (before openmp activation)
     401   if [[ "$veget" == "orchidee1.9" ]] ; then
     402      CPP_KEY="$CPP_KEY ORCHIDEE_NOOPENMP"
     403   fi
     404   if [[ "$veget" == "orchidee2.0" ]] ; then
     405      orch_libs="sechiba parameters stomate parallel orglob orchidee"
     406   else
     407      orch_libs="sechiba parameters stomate parallel orglob"
     408   fi
     409   LIB="${LIB} -L${ORCH_LIBDIR}"
     410   for lib in ${orch_libs} ; do
     411      if [ -f ${ORCH_LIBDIR}/lib${LIBPREFIX}$lib.a ] ; then
     412         LIB="${LIB} -l${LIBPREFIX}$lib "
     413      fi
     414   done
     415elif [[ "$veget" != "false" ]] ; then
     416   echo "Option -v $veget does not exist"
     417   echo "Use ./makelmdz -h for more information"
     418   exit
    390419fi
    391420
     
    406435   INCLUDE="$INCLUDE"' -I$(LIBF)/cosp'
    407436fi
     437
    408438
    409439INCLUDE="$INCLUDE ${NETCDF_INCDIR}"
     
    535565fi
    536566
    537 if [[ $veget == "true" ]]
     567if [[ $veget != "false" ]]
    538568then
    539569  SUFF_NAME=${SUFF_NAME}_orch
     
    645675
    646676# library directory name:
    647 if [[ "$parallel" == "none" ]]
    648 then
    649   nomlib=${arch}_${physique}_${dim_full}_${grille}_${compil_mod}
    650 else
    651   nomlib=${arch}_${physique}_${dim_full}_${grille}_${compil_mod}_${FLAG_PARA}
    652 fi
     677nomlib=`echo ${arch}_${physique}_${dim_full}_${grille}_${compil_mod}_parall${parallel}_${CPP_KEY}_${FLAG_PARA} | sed -e 's/ //g' -e 's/-//g ' | sed -e 's/CPP_//g'`
     678echo $nomlib
    653679
    654680if [[ ! -d "${LIBOGCM}/${nomlib}" ]]
Note: See TracChangeset for help on using the changeset viewer.