Changeset 6218 for CONFIG/UNIFORM
- Timestamp:
- 08/02/22 14:21:37 (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/compile_lmdzorinca.sh
r6213 r6218 18 18 # Resolution of LMDZ in regular mode 19 19 regular_latlon=yes 20 resol_atm_3d=96x95x39 20 resol_atm_3d=144x142x79 21 # Also compile ce0l subprogram to LMDZ (y/n) 22 ce0l=n 23 21 24 optchimie=NMHC_AER_S 22 25 #recompilation de inca seul ou de tous les modeles … … 42 45 outfile=$submitdir/out_compile_lmdzorinca.$datestr 43 46 echo > $outfile 44 echo; echo "Text output from compilation will be stored in file out_compile_lmdzor .$datestr"; echo47 echo; echo "Text output from compilation will be stored in file out_compile_lmdzorinca.$datestr"; echo 45 48 46 49 #### Read arguments … … 106 109 optmode=prod ; shift ;; 107 110 111 "-ce0l") 112 ce0l=y ; shift ;; 113 108 114 "-rad") 109 115 rad=$2; shift ; shift;; … … 131 137 esac 132 138 done 133 echo; echo "********************* WARNING **********************"134 echo; echo "********************* WARNING **********************"135 echo; echo " if you are working with an lmdz version before rev 3563 (check it with command svn info) "136 echo "you need to modify phylmd/physiq_mod.F90 file "137 echo "add ! to comment lines if/endif before and after the call to AEROSOL_METEO_CALC"138 echo; echo "********************* WARNING **********************"139 echo; echo "********************* WARNING **********************"140 139 141 140 echo "Following arguments are set in current compiling:" >> $outfile 142 141 echo " optmode = $optmode, parallel = $parallel, fcm_arch = $fcm_arch, full_flag=$full_flag regular_latlon=$regular_latlon" >> $outfile 142 echo " ce0l=${ce0l}" >> $outfile 143 143 echo " chimie = $optchimie, clean_inca = ${clean_inca}" 144 144 echo >> $outfile … … 301 301 fi 302 302 303 # # Compile ce0l initialization program for LMDZ regular lat-lon exectuable304 # echo; echo "NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm_3d}"305 # echo >> $outfile ; echo " NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm_3d}" >> $outfile306 #307 # 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 >> $outfile308 # ./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>&1309 # # Test if compiling finished310 # if [[ $? != 0 ]] ; then311 # echo "THERE IS A PROBLEM IN CE0L (LMDZ) REGULAR LATLON COMPILATION - STOP"312 # exit313 # fi314 #315 316 317 318 303 319 304 suffix=_${resol_atm_3d}_phylmd … … 338 323 339 324 fi 340 # 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}_${optchimie}.e ; fi 325 326 # Compile ce0l initialization program for LMDZ regular lat-lon exectuable 327 if [ $ce0l == y ] ; then 328 echo; echo "NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm}" 329 echo >> $outfile ; echo " NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm}" >> $outfile 330 331 332 echo ./makelmdz_fcm -d ${resol_atm_3d} -p lmd ${opt_rad} -$optmode -arch $fcm_arch -chimie INCA -arch_path $arch_path -j 8 $full_lmdz ce0l >> $outfile 333 ./makelmdz_fcm -d ${resol_atm_3d} -p lmd ${opt_rad} -$optmode -arch $fcm_arch -chimie INCA -arch_path $arch_path -j 8 $full_lmdz ce0l >> $outfile 2>&1 334 # Test if compiling finished 335 if [[ $? != 0 ]] ; then 336 echo "THERE IS A PROBLEM IN CE0L (LMDZ) REGULAR LATLON COMPILATION - STOP" 337 exit 338 fi 339 340 341 # Move executables to modipsl/bin folder 342 echo >> $outfile 343 echo "Move ce0l.e executable to modipsl/bin" >> $outfile 344 echo ls -lrt $modipsl/modeles/LMDZ/bin >> $outfile 345 ls -lrt $modipsl/modeles/LMDZ/bin >> $outfile 346 echo >> $outfile 347 suffix=_${resol_atm_3d}_phylmd_seq.e 348 echo ce0l suffix = $suffix 349 350 if [ -f $modipsl/modeles/LMDZ/bin/ce0l${suffix} ] ; then 351 mv $modipsl/modeles/LMDZ/bin/ce0l${suffix} $modipsl/bin/ce0l_${resol_atm}_${optmode}_${optchimie}.e 352 else 353 echo "ERROR ce0l${suffix} executable does not exist." 354 echo "THERE IS A PROBLEM IN CE0L (LMDZ) REGULAR LATLON COMPILATION - STOP" 355 exit 356 fi 357 fi 358 359 341 360 342 361 fi
Note: See TracChangeset
for help on using the changeset viewer.