Changeset 4469 for CONFIG/UNIFORM/v6/LMDZOR_v6.2
- Timestamp:
- 06/21/19 09:40:20 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/UNIFORM/v6/LMDZOR_v6.2/compile_lmdzor.sh
r4464 r4469 17 17 optmode=prod 18 18 # Resolution of LMDZ in regular mode 19 regular_latlon=yes 20 resol_atm_3d=144x142x79 19 resol_atm=144x142x79 21 20 22 21 # fcm_arch … … 47 46 ./compile_config [Options] 48 47 49 Options: -full, -re gular_latlon, -debug, -dev, -prod(default)48 Options: -full, -resol_atm, -debug, -dev, -prod(default) 50 49 51 50 Example 1: Default compilation of LMDZ-ORCHIDEE with XIOS and IOIPSL … … 60 59 Example 4: Compilation of LMDZ in regular lat-lon for other dimensions (default: 144x142x79) 61 60 The dimension can be changed to any other 3d dimension. 62 ./compile_lmdzor.sh -re gular_latlon96x95x7961 ./compile_lmdzor.sh -resol_atm 96x95x79 63 62 64 63 fin … … 74 73 xios="$2" ; shift ; shift ;; 75 74 76 "-optmode")77 optmode=$2 ; shift ; shift ;;78 79 75 "-debug") 80 76 optmode=debug ; shift ;; … … 86 82 optmode=prod ; shift ;; 87 83 88 "-regular_latlon") 89 regular_latlon=yes ; 90 resol_atm_3d=$2 ; shift ; shift ;; 84 "-resol_atm") 85 resol_atm=$2 ; shift ; shift ;; 91 86 92 87 "-full") … … 103 98 104 99 echo "Following arguments are set in current compiling:" >> $outfile 105 echo " optmode = $optmode, parallel = $parallel, fcm_arch = $fcm_arch, full_flag=$full_flag re gular_latlon=$regular_latlon" >> $outfile100 echo " optmode = $optmode, parallel = $parallel, fcm_arch = $fcm_arch, full_flag=$full_flag resol_atm=${resol_atm}" >> $outfile 106 101 echo >> $outfile 107 102 … … 194 189 195 190 ## 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 191 cd $modipsl/modeles/LMDZ 192 # Compile LMDZ regular lat-lon exectuable 193 echo; echo "NOW COMPILE LMDZ REGULAR LAT-LON MODE. Resolution = ${resol_atm}" 194 echo >> $outfile ; echo " NOW COMPILE LMDZ REGULAR LAT-LON MODE. Resolution = ${resol_atm}" >> $outfile 195 196 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_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 199 if [[ $? != 0 ]] ; then 200 echo "THERE IS A PROBLEM IN LMDZ REGULAR LATLON COMPILATION - STOP" 201 exit 202 fi 203 204 # Compile ce0l initialization program for LMDZ regular lat-lon exectuable 205 echo; echo "NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm}" 206 echo >> $outfile ; echo " NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm}" >> $outfile 230 207 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 208 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_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 211 if [[ $? != 0 ]] ; then 212 echo "THERE IS A PROBLEM IN CE0L (LMDZ) REGULAR LATLON COMPILATION - STOP" 213 exit 214 fi 215 216 # Find executable suffix 217 if [ $parallel == seq ] || [ $parallel == none ] ; then 218 suffix=_${resol_atm}_phylmd_seq_orch 219 else 220 suffix=_${resol_atm}_phylmd_para_mem_orch 221 fi 222 echo suffix = $suffix 223 224 # Move executables to modipsl/bin folder 225 echo "Move gcm.e and ce0l executable to modipsl/bin" 226 if [ -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 227 if [ -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 235 228 236 229 fi
Note: See TracChangeset
for help on using the changeset viewer.