Ignore:
Timestamp:
10/05/23 14:51:37 (8 months ago)
Author:
jgipsl
Message:

Change orchcomp into argorch to be more coherent with other options (arginca, archoasis) and define it later in the script.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v7/IPSLCM7/compile_ipslcm7.sh

    r6639 r6640  
    4848 
    4949# orchversion tells if ORCHIDEE_2_2 or ORCHIDEE_trunk is compiled. This is used as argument and also in the suffix of the executables. 
    50 # orchcomp is the key word needed for LMDZ for the compilation of coherent interface. Only used internal to the compilation script. 
    5150orchversion=orch22 
    52 orchcomp=orchidee2.1 
    5351 
    5452# Default netcdf_lib is used for XIOS but can be change by argument 
     
    129127        "-cleannemo")  full_nemo=y ; shift ;; 
    130128        "-rad")        rad=$2; shift ; shift ;; 
    131         "-orch22")     orchversion="orch22"; orchcomp=orchidee2.1; shift ;; 
    132         "-orch4")      orchversion="orch4"; orchcomp=orchideetrunk; shift ;; 
     129        "-orch22")     orchversion="orch22"; shift ;; 
     130        "-orch4")      orchversion="orch4"; shift ;; 
    133131        "-chimie")     optchimie=$2; shift ; shift;; 
    134132        *)             echo "unknown option "$1" , exiting..." ; exit 
     
    148146echo >> $outfile 
    149147 
     148### Verification of argument 
     149# Set argorch depeinding on the version of ORCHIDEE. This is argument needed for the compilation of LMDZ to consider coherent interface.  
     150if [ $orchversion == orch22 ] ; then 
     151    argorch=orchidee2.1 
     152elif [ $orchversion == orch4 ] ; then 
     153    argorch=orchideetrunk 
     154else 
     155    echo "ERROR in version of ORCHIDEE. It is only possible to have orch22 or orch4 for now" 
     156fi 
    150157 
    151158### Read host dependent default values 
     
    469476        argoasis=" " 
    470477    fi 
    471     echo ./makelmdz_fcm -p lmd $argoasis $opt_rad -$optmode -mem -parallel $parallel -libphy -v $orchcomp $arginca  -io xios -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz    >> $outfile  
    472     ./makelmdz_fcm -p lmd $argoasis $opt_rad -$optmode -mem -parallel $parallel -libphy -v $orchcomp $arginca  -io xios -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz    >> $outfile 2>&1 
     478 
     479    echo ./makelmdz_fcm -p lmd $argoasis $opt_rad -$optmode -mem -parallel $parallel -libphy -v $argorch $arginca  -io xios -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz    >> $outfile  
     480    ./makelmdz_fcm -p lmd $argoasis $opt_rad -$optmode -mem -parallel $parallel -libphy -v $argorch $arginca  -io xios -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz    >> $outfile 2>&1 
    473481     
    474482     
     
    570578        argoasis="" 
    571579    fi 
    572     echo ./makelmdz_fcm -d ${resol_atm} $argoasis -p lmd $opt_rad -$optmode -mem -parallel $parallel $arginca  -io xios -v $orchcomp -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm    >> $outfile  
    573          ./makelmdz_fcm -d ${resol_atm} $argoasis -p lmd $opt_rad -$optmode -mem -parallel $parallel $arginca  -io xios -v $orchcomp -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm    >> $outfile 2>&1 
     580    echo ./makelmdz_fcm -d ${resol_atm} $argoasis -p lmd $opt_rad -$optmode -mem -parallel $parallel $arginca  -io xios -v $argorch -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm    >> $outfile  
     581         ./makelmdz_fcm -d ${resol_atm} $argoasis -p lmd $opt_rad -$optmode -mem -parallel $parallel $arginca  -io xios -v $argorch -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm    >> $outfile 2>&1 
    574582    # Test if compiling finished 
    575583    if [[ $? != 0 ]] ; then 
     
    634642    echo >> $outfile ; echo " NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm}"   >> $outfile  
    635643 
    636     echo ./makelmdz_fcm -d ${resol_atm} $argoasis -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v $orchcomp -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz ce0l    >> $outfile  
    637          ./makelmdz_fcm -d ${resol_atm} $argoasis -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v $orchcomp -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz ce0l    >> $outfile 2>&1 
     644    echo ./makelmdz_fcm -d ${resol_atm} $argoasis -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v $argorch -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz ce0l    >> $outfile  
     645         ./makelmdz_fcm -d ${resol_atm} $argoasis -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v $argorch -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz ce0l    >> $outfile 2>&1 
    638646    # Test if compiling finished 
    639647    if [[ $? != 0 ]] ; then 
Note: See TracChangeset for help on using the changeset viewer.