Ignore:
Timestamp:
Mar 1, 2023, 6:22:39 PM (16 months ago)
Author:
Laurent Fairhead
Message:

Merged trunk revisions from 4127 to 4443 (HEAD) into branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Portage_acc/makelmdz_fcm

    r4103 r4446  
    2525inlandsis=false
    2626rrtm=false
    27 rad="old"
     27rad="oldrad"
    2828dust=false
    2929strataer=false
     
    4545isotrac=false
    4646force_compile=false
     47cplocninca=false
    4748
    4849arch_defined="FALSE"
     
    9495[-prod / -dev / -debug]    : compilation mode production (default) / developement / debug
    9596[-c false/MPI1/OMCT]       : coupling with ocean model : MPI1/OMCT/false (default: false)
    96 [-v false/orchidee2.0/orchidee1.9/true] : version of the vegetation model to include (default: false)
     97[-v false/orchideetrunk/orchidee2.1/orchidee2.0/orchidee1.9] : version of the vegetation model to include (default: false)
    9798          false       : no vegetation model
    98           orchidee2.1 : compile using ORCHIDEE 2.1 (or more recent version)
     99          orchideetrunk : compile using ORCHIDEE trunk from revision 7757 or higher
     100          orchidee2.1 : compile using ORCHIDEE 2.1 until 4.1 included or until revision 7757 on the trunk
    99101          orchidee2.0 : compile using ORCHIDEE 2.0
    100102          orchidee1.9 : compile using ORCHIDEE up to the version including OpenMP in ORCHIDEE : tag 1.9-1.9.5(version AR5)-1.9.6
    101103          true        : (obsolete; for backward compatibility) use ORCHIDEE tag 1.9-1.9.6
    102104[-chimie INCA/false]       : with INCA chemistry model or without (default: false)
     105[-cplocninca ]        : allow transfer of species from PISCES to INCA (default: false)
    103106[-cosp true/false]    : compile with/without cosp package (default: false)
    104107[-cosp2 true/false]    : compile with/without cosp2 package (default: false)
     
    106109[-inlandsis true/false]  : compile with/without inlandsis package (default: false)
    107110[-rrtm true/false]    : compile with/without rrtm package (default: false)
    108 [-rad old/rrtm/ecrad]    : compile with old/rrtm/ecrad radiatif code (default: old)
     111[-rad oldrad/rrtm/ecrad]    : compile with oldrad/rrtm/ecrad radiatif code (default: oldrad)
    109112[-dust true/false]    : compile with/without the dust package by Boucher and co (default: false)
    110113[-strataer true/false]    : compile with/without the strat aer package by Boucher and co (default: false)
     
    165168
    166169      "-rrtm")
    167           rrtm="$2" ; if [ "$2" = "false" ] ; then rad="old" ; else rad="rrtm" ; fi ; shift ; shift ;;
     170          rrtm="$2" ; if [ "$2" = "false" ] ; then rad="oldrad" ; else rad="rrtm" ; fi ; shift ; shift ;;
    168171
    169172      "-rad")
     
    178181      "-chimie")
    179182          chimie="$2" ; shift ; shift ;;
     183
     184     "-cplocninca")
     185          cplocninca=TRUE ; shift ;;
    180186
    181187      "-isotopes")
     
    364370then
    365371   CPP_KEY="$CPP_KEY INCA"
    366    INCLUDE="$INCLUDE -I${INCA_INCDIR}"
    367    LIB="$LIB -L${INCA_LIBDIR} -lchimie"
     372   INCLUDE="$INCLUDE ${INCA_INCDIR}"
     373   LIB="$LIB ${INCA_LIBDIR} ${INCA_LIB}"
    368374fi
    369375
     
    399405    else
    400406        CPP_KEY="$CPP_KEY CPP_COUPLE CPP_OMCT"
    401         INCLUDE="$INCLUDE -I${OASIS_INCDIR}"
    402         LIB="$LIB -L${OASIS_LIBDIR} -lpsmile.MPI1 -lscrip -lmct -lmpeu"
     407        INCLUDE="$INCLUDE ${OASIS_INCDIR}"
     408        LIB="$LIB ${OASIS_LIBDIR} -lpsmile.MPI1 -lscrip -lmct -lmpeu"
    403409    fi
    404410fi
     
    428434fi
    429435
    430 if [ "$veget" = "true" -o "$veget" = "orchidee1.9" -o "$veget" = "orchidee2.0" -o "$veget" = "orchidee2.1" ]
    431 then
     436if [ "$veget" = "true" -o "$veget" = "orchidee1.9" -o "$veget" = "orchidee2.0" -o "$veget" = "orchidee2.1" -o "$veget" = "orchideetrunk" ]
     437then
     438        echo "doing orchidee"
    432439#NB: option 'true': for backward compatibility. To be used with ORCHIDEE tag 1.9-1.9.6
    433440#    For this case, cpp flag ORCHIDEE_NOOPENMP must be added to the makelmdz_fcm arguments
    434441#    option orchidee1.9 : Compile with ORCHIDEE version up to the inclusion of OpenMP in ORCHIDEE : tag 1.9-1.9.5(version AR5)-1.9.6
    435    INCLUDE="${INCLUDE} -I${ORCH_INCDIR}"
     442   INCLUDE="${INCLUDE} ${ORCH_INCDIR}"
    436443   CPP_KEY="$CPP_KEY CPP_VEGET"
    437444# temporary, for Orchidee versions 1.9.* (before openmp activation)
     
    440447   fi
    441448   if [[ "$veget" == "orchidee2.0" ]] ; then
    442       orch_libs="sechiba parameters stomate parallel orglob orchidee"
     449      orch_libs="-lsechiba -lparameters -lstomate -lparallel -lorglob -lorchidee"
    443450      CPP_KEY="$CPP_KEY ORCHIDEE_NOUNSTRUCT"
    444451   elif [[ "$veget" == "orchidee2.1" ]] ; then
    445       orch_libs="sechiba parameters stomate parallel orglob orchidee"
     452      CPP_KEY="$CPP_KEY ORCHIDEE_NOLIC"
     453      orch_libs="-lsechiba -lparameters -lstomate -lparallel -lorglob -lorchidee"
     454   elif [[ "$veget" == "orchideetrunk" ]] ; then
     455      orch_libs="-lorchidee"
    446456   else
    447       orch_libs="sechiba parameters stomate parallel orglob"
     457      orch_libs="-lsechiba -lparameters -lstomate -lparallel -lorglob"
    448458   fi
    449    LIB="${LIB} -L${ORCH_LIBDIR}"
    450    for lib in ${orch_libs} ; do
    451       if [ -f ${ORCH_LIBDIR}/lib${LIBPREFIX}$lib.a ] ; then
    452          LIB="${LIB} -l${LIBPREFIX}$lib "
    453       fi
    454    done
     459   LIB="${LIB} ${ORCH_LIBDIR} ${orch_libs}"
     460#   for lib in ${orch_libs} ; do
     461#      if [ -f ${ORCH_LIBDIR#-L}/lib${LIBPREFIX}$lib.a ] ; then
     462#         LIB="${LIB} -l${LIBPREFIX}$lib "
     463#      fi
     464#   done
     465   echo "orchidee lib"
     466   echo ${LIB}
    455467elif [[ "$veget" != "false" ]] ; then
    456468   echo "Option -v $veget does not exist"
     
    492504then
    493505   CPP_KEY="$CPP_KEY CPP_IOIPSL"
    494    INCLUDE="$INCLUDE -I${IOIPSL_INCDIR}"
    495    LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl"
     506   INCLUDE="$INCLUDE ${IOIPSL_INCDIR}"
     507   LIB="$LIB ${IOIPSL_LIBDIR} ${IOIPSL_LIB}"
    496508elif [[ $io == mix ]]
    497509then
    498510   # For now, xios implies also using ioipsl
    499511   CPP_KEY="$CPP_KEY CPP_IOIPSL CPP_XIOS"
    500    INCLUDE="$INCLUDE -I${IOIPSL_INCDIR} -I${XIOS_INCDIR}"
    501    LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl -L${XIOS_LIBDIR} -l${LIBPREFIX}stdc++ -l${LIBPREFIX}xios -l${LIBPREFIX}stdc++"
     512   INCLUDE="$INCLUDE ${IOIPSL_INCDIR} ${XIOS_INCDIR}"
     513   LIB="$LIB ${IOIPSL_LIBDIR} ${IOIPSL_LIB} ${XIOS_LIBDIR} ${XIOS_LIB}"
    502514elif [[ $io == xios ]]
    503515then
    504516   # For now, xios implies also using ioipsl
    505517   CPP_KEY="$CPP_KEY CPP_IOIPSL CPP_XIOS CPP_IOIPSL_NO_OUTPUT"
    506    INCLUDE="$INCLUDE -I${IOIPSL_INCDIR} -I${XIOS_INCDIR}"
    507    LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl -L${XIOS_LIBDIR} -l${LIBPREFIX}stdc++ -l${LIBPREFIX}xios -l${LIBPREFIX}stdc++"
     518   INCLUDE="$INCLUDE ${IOIPSL_INCDIR} ${XIOS_INCDIR}"
     519   LIB="$LIB ${IOIPSL_LIBDIR} ${IOIPSL_LIB} ${XIOS_LIBDIR} ${XIOS_LIB}"
    508520fi
    509521
     
    529541fi
    530542
     543if [[ "$cplocninca" == "TRUE" ]]
     544then
     545    CPP_KEY="${CPP_KEY} CPP_CPLOCNINCA"
     546fi
    531547
    532548
    533549INCLUDE="$INCLUDE ${NETCDF_INCDIR}"
    534 LIB="$LIB ${NETCDF_LIBDIR}"
     550LIB="$LIB ${NETCDF_LIBDIR} ${NETCDF_LIB}"
    535551
    536552########################################################################
     
    595611then
    596612  CPP_KEY="$CPP_KEY CPP_1D"
    597 ##in 1D, add dyn3d to include path (because main prog is in physics)
    598   INCLUDE="$INCLUDE -Ilibf/dyn3d -Ilibf/dyn3d_common"
    599613## no filtre in 1d:
    600614  FILTRE_PATH=$LMDGCM/.void_dir
     
    649663
    650664SUFF_NAME=_${dim_full}
    651 SUFF_NAME=${SUFF_NAME}_phy${physique}
     665SUFF_NAME=${SUFF_NAME}_phy${physique}_${rad}
    652666
    653667if [[ "$parallel" != "none" ]]
Note: See TracChangeset for help on using the changeset viewer.