Changeset 6112 for CONFIG/UNIFORM


Ignore:
Timestamp:
04/20/22 13:53:46 (2 years ago)
Author:
jgipsl
Message:

Added choice of radiation scheme and version of cosp for LMDZ in the main compilation script for LMDZOR configurations. Done by Abderrahmane Idelkadi, LMD

Location:
CONFIG/UNIFORM/v6
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/LMDZOR_v6.2/compile_lmdzor.sh

    r5122 r6112  
    2525# Default values to be overritten 
    2626parallel=mpi_omp 
     27# Compilation with rrtm or ecrad radiative code (default rad=rrtm) 
     28rad=rrtm 
     29# Compilation with Cosp (cosp=NONE/v1/v2 ; default=NONE) 
     30cosp=NONE 
     31 
    2732export fcm_arch parallel xios 
    2833full_flag="" 
     
    7075exit;; 
    7176        "-parallel")        parallel=$2 ; shift ; shift ;;  
     77        "-rad")             rad=$2 ; shift ; shift ;; 
     78        "-cosp")            cosp=$2 ; shift ; shift ;; 
    7279        "-arch")            fcm_arch="$2" ; shift ; shift ;; 
    7380        "-xios")            xios="$2" ; shift ; shift ;; 
     
    93100echo >> $outfile 
    94101 
     102if [ $cosp = v1 ] ; then 
     103    opt_cosp="-cosp true" 
     104elif [ $cosp = v2 ] ; then 
     105    opt_cosp="-cospv2 true" 
     106else 
     107    opt_cosp="" 
     108fi 
    95109### Read host dependent default values 
    96110### These variables will not be changed if they were set as argument 
     
    238252fi 
    239253 
    240 echo ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm    >> $outfile  
    241 ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm    >> $outfile 2>&1 
     254echo ./makelmdz_fcm -d ${resol_atm} -p lmd -rad $rad  $opt_cosp -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm    >> $outfile  
     255./makelmdz_fcm -d ${resol_atm} -p lmd -rad $rad -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm    >> $outfile 2>&1 
    242256# Test if compiling finished 
    243257if [[ $? != 0 ]] ; then 
     
    275289    echo >> $outfile ; echo " NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm}"   >> $outfile  
    276290     
    277     echo ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -io xios -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz ce0l    >> $outfile  
    278     ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -io xios -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz ce0l    >> $outfile 2>&1 
     291    echo ./makelmdz_fcm -d ${resol_atm} -p lmd -rad $rad -$optmode -io xios -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz ce0l    >> $outfile  
     292    ./makelmdz_fcm -d ${resol_atm} -p lmd -rad $rad -$optmode -io xios -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz ce0l    >> $outfile 2>&1 
    279293    # Test if compiling finished 
    280294    if [[ $? != 0 ]] ; then 
  • CONFIG/UNIFORM/v6/LMDZOR_v6.3/compile_lmdzor.sh

    r5122 r6112  
    2525# Default values to be overritten 
    2626parallel=mpi_omp 
     27# Compilation with rrtm or ecrad radiative code (default rad=rrtm) 
     28rad=rrtm 
     29# Compilation with Cosp (cosp=NONE/v1/v2 ; default=NONE) 
     30cosp=NONE 
     31 
    2732export fcm_arch parallel xios 
    2833full_flag="" 
     
    7075exit;; 
    7176        "-parallel")        parallel=$2 ; shift ; shift ;;  
     77        "-rad")             rad=$2 ; shift ; shift ;; 
     78        "-cosp")            cosp=$2 ; shift ; shift ;; 
    7279        "-arch")            fcm_arch="$2" ; shift ; shift ;; 
    7380        "-xios")            xios="$2" ; shift ; shift ;; 
     
    93100echo >> $outfile 
    94101 
     102if [ $cosp = v1 ] ; then 
     103    opt_cosp="-cosp true" 
     104elif [ $cosp = v2 ] ; then 
     105    opt_cosp="-cospv2 true" 
     106else 
     107    opt_cosp="" 
     108fi 
    95109### Read host dependent default values 
    96110### These variables will not be changed if they were set as argument 
     
    110124            fcm_arch=ifort_LSCE 
    111125            if [ "${parallel}" == "mpi_omp" ] ; then  
    112                echo "Warning!! Currently at Obelix hybrid mode is not possible." 
    113                echo "          Option -parallel mpi_omp is now changed to -parallel mpi" 
    114                echo "" 
    115                parallel=mpi 
     126                echo "Warning!! Currently at Obelix hybrid mode is not possible." 
     127                echo "          Option -parallel mpi_omp is now changed to -parallel mpi" 
     128                echo "" 
     129                parallel=mpi 
    116130            else 
    117                echo "You used -parallel" $parallel 
     131                echo "You used -parallel" $parallel 
    118132            fi ;; 
    119133        ciclad*|climserv*|loholt*|camelot*) 
     
    192206echo; echo "NOW COMPILE ORCHIDEE" 
    193207echo >> $outfile ; echo " NOW COMPILE ORCHIDEE"   >> $outfile  
     208 
    194209 
    195210# Check if the compilation of ORCHIDEE was previsouly interupted prematured.  
     
    237252fi 
    238253 
    239 echo ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm    >> $outfile  
    240 ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm    >> $outfile 2>&1 
     254echo ./makelmdz_fcm -d ${resol_atm} -p lmd -rad $rad  $opt_cosp -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm    >> $outfile  
     255./makelmdz_fcm -d ${resol_atm} -p lmd -rad $rad -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm    >> $outfile 2>&1 
    241256# Test if compiling finished 
    242257if [[ $? != 0 ]] ; then 
     
    274289    echo >> $outfile ; echo " NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm}"   >> $outfile  
    275290     
    276     echo ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -io xios -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz ce0l    >> $outfile  
    277     ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -io xios -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz ce0l    >> $outfile 2>&1 
     291    echo ./makelmdz_fcm -d ${resol_atm} -p lmd -rad $rad -$optmode -io xios -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz ce0l    >> $outfile  
     292    ./makelmdz_fcm -d ${resol_atm} -p lmd -rad $rad -$optmode -io xios -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz ce0l    >> $outfile 2>&1 
    278293    # Test if compiling finished 
    279294    if [[ $? != 0 ]] ; then 
  • CONFIG/UNIFORM/v6/LMDZOR_v6.4/compile_lmdzor.sh

    r5122 r6112  
    2525# Default values to be overritten 
    2626parallel=mpi_omp 
     27# Compilation with rrtm or ecrad radiative code (default rad=rrtm) 
     28rad=rrtm 
     29# Compilation with Cosp (cosp=NONE/v1/v2 ; default=NONE) 
     30cosp=NONE 
     31 
    2732export fcm_arch parallel xios 
    2833full_flag="" 
     
    7075exit;; 
    7176        "-parallel")        parallel=$2 ; shift ; shift ;;  
     77        "-rad")             rad=$2 ; shift ; shift ;; 
     78        "-cosp")            cosp=$2 ; shift ; shift ;; 
    7279        "-arch")            fcm_arch="$2" ; shift ; shift ;; 
    7380        "-xios")            xios="$2" ; shift ; shift ;; 
     
    93100echo >> $outfile 
    94101 
     102if [ $cosp = v1 ] ; then 
     103    opt_cosp="-cosp true" 
     104elif [ $cosp = v2 ] ; then 
     105    opt_cosp="-cospv2 true" 
     106else 
     107    opt_cosp="" 
     108fi 
    95109### Read host dependent default values 
    96110### These variables will not be changed if they were set as argument 
     
    110124            fcm_arch=ifort_LSCE 
    111125            if [ "${parallel}" == "mpi_omp" ] ; then  
    112                echo "Warning!! Currently at Obelix hybrid mode is not possible." 
    113                echo "          Option -parallel mpi_omp is now changed to -parallel mpi" 
    114                echo "" 
    115                parallel=mpi 
     126                echo "Warning!! Currently at Obelix hybrid mode is not possible." 
     127                echo "          Option -parallel mpi_omp is now changed to -parallel mpi" 
     128                echo "" 
     129                parallel=mpi 
    116130            else 
    117                echo "You used -parallel" $parallel 
     131                echo "You used -parallel" $parallel 
    118132            fi ;; 
    119133        ciclad*|climserv*|loholt*|camelot*) 
     
    192206echo; echo "NOW COMPILE ORCHIDEE" 
    193207echo >> $outfile ; echo " NOW COMPILE ORCHIDEE"   >> $outfile  
     208 
    194209 
    195210# Check if the compilation of ORCHIDEE was previsouly interupted prematured.  
     
    237252fi 
    238253 
    239 echo ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm    >> $outfile  
    240 ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm    >> $outfile 2>&1 
     254echo ./makelmdz_fcm -d ${resol_atm} -p lmd -rad $rad  $opt_cosp -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm    >> $outfile  
     255./makelmdz_fcm -d ${resol_atm} -p lmd -rad $rad -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm    >> $outfile 2>&1 
    241256# Test if compiling finished 
    242257if [[ $? != 0 ]] ; then 
     
    274289    echo >> $outfile ; echo " NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm}"   >> $outfile  
    275290     
    276     echo ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -io xios -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz ce0l    >> $outfile  
    277     ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -io xios -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz ce0l    >> $outfile 2>&1 
     291    echo ./makelmdz_fcm -d ${resol_atm} -p lmd -rad $rad -$optmode -io xios -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz ce0l    >> $outfile  
     292    ./makelmdz_fcm -d ${resol_atm} -p lmd -rad $rad -$optmode -io xios -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz ce0l    >> $outfile 2>&1 
    278293    # Test if compiling finished 
    279294    if [[ $? != 0 ]] ; then 
Note: See TracChangeset for help on using the changeset viewer.