Changeset 4469 for CONFIG/UNIFORM


Ignore:
Timestamp:
06/21/19 09:40:20 (5 years ago)
Author:
jgipsl
Message:

Simplifications : change resol_atm_2d into resol_atm. Remove indentation and option regular_latlon.

File:
1 edited

Legend:

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

    r4464 r4469  
    1717optmode=prod 
    1818# Resolution of LMDZ in regular mode 
    19 regular_latlon=yes 
    20 resol_atm_3d=144x142x79 
     19resol_atm=144x142x79 
    2120 
    2221# fcm_arch 
     
    4746./compile_config [Options]  
    4847 
    49 Options: -full, -regular_latlon, -debug, -dev, -prod(default) 
     48Options: -full, -resol_atm, -debug, -dev, -prod(default) 
    5049 
    5150Example 1: Default compilation of LMDZ-ORCHIDEE with XIOS and IOIPSL 
     
    6059Example 4: Compilation of LMDZ in regular lat-lon for other dimensions (default: 144x142x79)  
    6160The dimension can be changed to any other 3d dimension. 
    62 ./compile_lmdzor.sh -regular_latlon 96x95x79 
     61./compile_lmdzor.sh -resol_atm 96x95x79 
    6362 
    6463fin 
     
    7473            xios="$2" ; shift ; shift ;; 
    7574         
    76         "-optmode") 
    77             optmode=$2 ; shift ; shift ;; 
    78  
    7975        "-debug") 
    8076            optmode=debug ; shift ;; 
     
    8682            optmode=prod ; shift ;; 
    8783 
    88         "-regular_latlon") 
    89             regular_latlon=yes ; 
    90             resol_atm_3d=$2 ; shift ; shift ;; 
     84        "-resol_atm") 
     85            resol_atm=$2 ; shift ; shift ;; 
    9186         
    9287        "-full") 
     
    10398 
    10499echo "Following arguments are set in current compiling:" >> $outfile  
    105 echo "   optmode = $optmode, parallel = $parallel, fcm_arch = $fcm_arch, full_flag=$full_flag regular_latlon=$regular_latlon" >> $outfile  
     100echo "   optmode = $optmode, parallel = $parallel, fcm_arch = $fcm_arch, full_flag=$full_flag resol_atm=${resol_atm}" >> $outfile  
    106101echo >> $outfile 
    107102 
     
    194189 
    195190## 2.4 Compile LMDZ for regular latlon configuration 
    196 if [ $regular_latlon = yes ] ; then 
    197  
    198     cd $modipsl/modeles/LMDZ 
    199     # Compile LMDZ regular lat-lon exectuable 
    200     echo; echo "NOW COMPILE LMDZ REGULAR LAT-LON MODE. Resolution = ${resol_atm_3d}" 
    201     echo >> $outfile ; echo " NOW COMPILE LMDZ REGULAR LAT-LON MODE. Resolution = ${resol_atm_3d}"   >> $outfile  
    202  
    203     echo ./makelmdz_fcm -d ${resol_atm_3d} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_flag gcm    >> $outfile  
    204          ./makelmdz_fcm -d ${resol_atm_3d} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_flag gcm    >> $outfile 2>&1 
    205     # Test if compiling finished 
    206     if [[ $? != 0 ]] ; then 
    207         echo "THERE IS A PROBLEM IN LMDZ REGULAR LATLON COMPILATION - STOP" 
    208         exit 
    209     fi 
    210  
    211     # Compile ce0l initialization program for LMDZ regular lat-lon exectuable 
    212     echo; echo "NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm_3d}" 
    213     echo >> $outfile ; echo " NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm_3d}"   >> $outfile  
    214  
    215     echo ./makelmdz_fcm -d ${resol_atm_3d} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_flag ce0l    >> $outfile  
    216          ./makelmdz_fcm -d ${resol_atm_3d} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_flag ce0l    >> $outfile 2>&1 
    217     # Test if compiling finished 
    218     if [[ $? != 0 ]] ; then 
    219         echo "THERE IS A PROBLEM IN CE0L (LMDZ) REGULAR LATLON COMPILATION - STOP" 
    220         exit 
    221     fi 
    222  
    223     # Find executable suffix 
    224     if [ $parallel == seq ] || [ $parallel == none ] ; then 
    225         suffix=_${resol_atm_3d}_phylmd_seq_orch 
    226     else 
    227         suffix=_${resol_atm_3d}_phylmd_para_mem_orch 
    228     fi 
    229     echo suffix = $suffix 
     191cd $modipsl/modeles/LMDZ 
     192# Compile LMDZ regular lat-lon exectuable 
     193echo; echo "NOW COMPILE LMDZ REGULAR LAT-LON MODE. Resolution = ${resol_atm}" 
     194echo >> $outfile ; echo " NOW COMPILE LMDZ REGULAR LAT-LON MODE. Resolution = ${resol_atm}"   >> $outfile  
     195 
     196echo ./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_flag gcm    >> $outfile  
     197./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_flag gcm    >> $outfile 2>&1 
     198# Test if compiling finished 
     199if [[ $? != 0 ]] ; then 
     200    echo "THERE IS A PROBLEM IN LMDZ REGULAR LATLON COMPILATION - STOP" 
     201    exit 
     202fi 
     203 
     204# Compile ce0l initialization program for LMDZ regular lat-lon exectuable 
     205echo; echo "NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm}" 
     206echo >> $outfile ; echo " NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm}"   >> $outfile  
    230207     
    231     # Move executables to modipsl/bin folder 
    232     echo "Move gcm.e and ce0l executable to modipsl/bin" 
    233     if [ -f $modipsl/modeles/LMDZ/bin/gcm${suffix}.e ] ;  then mv $modipsl/modeles/LMDZ/bin/gcm${suffix}.e $modipsl/bin/gcm_${resol_atm_3d}_${optmode}.e ; fi 
    234     if [ -f $modipsl/modeles/LMDZ/bin/ce0l${suffix}.e ] ;  then mv $modipsl/modeles/LMDZ/bin/ce0l${suffix}.e $modipsl/bin/ce0l_${resol_atm_3d}_${optmode}.e ; fi 
     208echo ./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_flag ce0l    >> $outfile  
     209./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_flag ce0l    >> $outfile 2>&1 
     210# Test if compiling finished 
     211if [[ $? != 0 ]] ; then 
     212    echo "THERE IS A PROBLEM IN CE0L (LMDZ) REGULAR LATLON COMPILATION - STOP" 
     213    exit 
     214fi 
     215 
     216# Find executable suffix 
     217if [ $parallel == seq ] || [ $parallel == none ] ; then 
     218    suffix=_${resol_atm}_phylmd_seq_orch 
     219else 
     220    suffix=_${resol_atm}_phylmd_para_mem_orch 
     221fi 
     222echo suffix = $suffix 
     223 
     224# Move executables to modipsl/bin folder 
     225echo "Move gcm.e and ce0l executable to modipsl/bin" 
     226if [ -f $modipsl/modeles/LMDZ/bin/gcm${suffix}.e ] ;  then mv $modipsl/modeles/LMDZ/bin/gcm${suffix}.e $modipsl/bin/gcm_${resol_atm}_${optmode}.e ; fi 
     227if [ -f $modipsl/modeles/LMDZ/bin/ce0l${suffix}.e ] ;  then mv $modipsl/modeles/LMDZ/bin/ce0l${suffix}.e $modipsl/bin/ce0l_${resol_atm}_${optmode}.e ; fi 
    235228 
    236229fi 
Note: See TracChangeset for help on using the changeset viewer.