Ignore:
Timestamp:
Dec 6, 2022, 12:01:16 AM (2 years ago)
Author:
lguez
Message:

Sync latest trunk changes to Ocean_skin

Location:
LMDZ6/branches/Ocean_skin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Ocean_skin

  • LMDZ6/branches/Ocean_skin/makelmdz_fcm

    r4013 r4368  
    2525inlandsis=false
    2626rrtm=false
    27 rad="old"
     27rad="oldrad"
    2828dust=false
    2929strataer=false
     
    4444diagiso=false
    4545isotrac=false
     46force_compile=false
     47cplocninca=false
    4648
    4749arch_defined="FALSE"
     
    9395[-prod / -dev / -debug]    : compilation mode production (default) / developement / debug
    9496[-c false/MPI1/OMCT]       : coupling with ocean model : MPI1/OMCT/false (default: false)
    95 [-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)
    9698          false       : no vegetation model
    97           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
    98101          orchidee2.0 : compile using ORCHIDEE 2.0
    99102          orchidee1.9 : compile using ORCHIDEE up to the version including OpenMP in ORCHIDEE : tag 1.9-1.9.5(version AR5)-1.9.6
    100103          true        : (obsolete; for backward compatibility) use ORCHIDEE tag 1.9-1.9.6
    101104[-chimie INCA/false]       : with INCA chemistry model or without (default: false)
     105[-cplocninca ]        : allow transfer of species from PISCES to INCA (default: false)
    102106[-cosp true/false]    : compile with/without cosp package (default: false)
    103107[-cosp2 true/false]    : compile with/without cosp2 package (default: false)
     
    105109[-inlandsis true/false]  : compile with/without inlandsis package (default: false)
    106110[-rrtm true/false]    : compile with/without rrtm package (default: false)
    107 [-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)
    108112[-dust true/false]    : compile with/without the dust package by Boucher and co (default: false)
    109113[-strataer true/false]    : compile with/without the strat aer package by Boucher and co (default: false)
     
    127131[-ext_src path]            : path to an additional set of routines to compile with the model
    128132[-arch_path path]          : path to architecture files (default: $arch_default_path)
     133[-force_compile]           : recompile although there seems to be an on-going compilation
    129134 -arch nom_arch            : target architecture
    130135 exec                      : executable to build
     
    163168
    164169      "-rrtm")
    165           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 ;;
    166171
    167172      "-rad")
     
    176181      "-chimie")
    177182          chimie="$2" ; shift ; shift ;;
     183
     184     "-cplocninca")
     185          cplocninca=TRUE ; shift ;;
    178186
    179187      "-isotopes")
     
    242250      "-arch_path")
    243251          arch_path=$2 ; arch_path_defined="TRUE"; shift ; shift ;;
     252
     253      "-force_compile")
     254          force_compile=true ; shift ;;
    244255
    245256      *)
     
    423434fi
    424435
    425 if [ "$veget" = "true" -o "$veget" = "orchidee1.9" -o "$veget" = "orchidee2.0" -o "$veget" = "orchidee2.1" ]
     436if [ "$veget" = "true" -o "$veget" = "orchidee1.9" -o "$veget" = "orchidee2.0" -o "$veget" = "orchidee2.1" -o "$veget" = "orchideetrunk" ]
    426437then
    427438#NB: option 'true': for backward compatibility. To be used with ORCHIDEE tag 1.9-1.9.6
     
    438449      CPP_KEY="$CPP_KEY ORCHIDEE_NOUNSTRUCT"
    439450   elif [[ "$veget" == "orchidee2.1" ]] ; then
     451      CPP_KEY="$CPP_KEY ORCHIDEE_NOLIC"
    440452      orch_libs="sechiba parameters stomate parallel orglob orchidee"
     453   elif [[ "$veget" == "orchideetrunk" ]] ; then
     454      orch_libs="orchidee"
    441455   else
    442456      orch_libs="sechiba parameters stomate parallel orglob"
     
    524538fi
    525539
     540if [[ "$cplocninca" == "TRUE" ]]
     541then
     542    CPP_KEY="${CPP_KEY} CPP_CPLOCNINCA"
     543fi
    526544
    527545
     
    551569if [[ -f dimensions.h ]]
    552570then
    553   echo 'ATTENTION: vous etes sans doute en train de compiler le modele par ailleurs'
    554   echo "Attendez que la premiere compilation soit terminee pour relancer la suivante."
    555   echo "Si vous etes sur que vous ne compilez pas le modele par ailleurs,"
    556   echo  vous pouvez continuer en repondant oui.
    557   echo "Voulez-vous vraiment continuer?"
    558   echo ""
    559   echo "WARNING: you are probably already compiling the model somewhere else."
    560   echo "Wait until the first compilation is finished before launching this one."
    561   echo "If you are sure that you are not compiling elsewhere, just answer "
    562   echo "yes (or 'oui') to the question below to proceed."
    563   echo "Do you wish to continue?"
    564   read reponse
    565   if [[ $reponse == "oui" || $reponse == "yes" ]]
    566   then
    567     \rm -f $LIBFGCM/grid/dimensions.h
    568   else
    569     exit
    570   fi
     571    if [[ $force_compile == true ]]
     572    then
     573        \rm -f $LIBFGCM/grid/dimensions.h
     574    else
     575        echo "WARNING: you are probably already compiling the model somewhere else."
     576        echo "Wait until the first compilation is finished before launching this one."
     577        echo "If you are sure that you are not compiling elsewhere, "
     578        echo "run makelmdz_fcm with option -force_compile"
     579        exit 1
     580    fi
    571581fi
    572582
     
    598608then
    599609  CPP_KEY="$CPP_KEY CPP_1D"
    600 ##in 1D, add dyn3d to include path (because main prog is in physics)
    601   INCLUDE="$INCLUDE -Ilibf/dyn3d -Ilibf/dyn3d_common"
    602610## no filtre in 1d:
    603611  FILTRE_PATH=$LMDGCM/.void_dir
     
    652660
    653661SUFF_NAME=_${dim_full}
    654 SUFF_NAME=${SUFF_NAME}_phy${physique}
     662SUFF_NAME=${SUFF_NAME}_phy${physique}_${rad}
    655663
    656664if [[ "$parallel" != "none" ]]
     
    773781fi
    774782
     783set +e
     784
    775785rm -f $LIBOGCM/${arch}${SUFF_NAME}/.config/fcm.bld.lock
    776786./build_gcm ${fcm_path} -j $job $full
     787build_status=$?
    777788
    778789err=$?
     
    793804  \rm -f $LIBFGCM/grid/dimensions.h
    794805fi
     806
     807exit $build_status
Note: See TracChangeset for help on using the changeset viewer.