Changeset 6427 for CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/compile_lmdzorinca.sh
- Timestamp:
- 04/24/23 16:27:40 (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/compile_lmdzorinca.sh
r6307 r6427 178 178 echo " Personal module list before sourcing of ARCH/arch.env file:" >> $outfile 179 179 module list >> $outfile 2>&1 180 # Get initial svn version181 svn_version=$(module list -t | grep subversion)182 180 183 181 # Make a link to this file, to be used also in config.card … … 187 185 # Source the file 188 186 source ARCH/arch.env >> $outfile 2>&1 189 if [ X$svn_version != X ] ; then190 # Put back initial version of svn191 module load ${svn_version}192 fi193 187 194 188 echo >> $outfile … … 282 276 echo >> $outfile ; echo " NOW COMPILE LMDZ REGULAR LAT-LON MODE. Resolution = ${resol_atm_3d}" >> $outfile 283 277 284 # Retrieve the final svn release number, needed for radiative code suffix of executable285 lmdzsvn=`svnversion . | egrep -o "[0-9]+" | awk 'NR==1'`286 echo >> $outfile ; echo "lmdzsvn= $lmdzsvn " >> $outfile287 278 288 279 # Check if the compilation of LMDZ was previsouly interupted prematured. … … 302 293 case $rad in 303 294 oldrad) opt_rad="" ;; 304 rrtm) if [ $lmdzsvn -le 4185 ] ; then opt_rad="-rrtm true" ; else opt_rad="-rad rrtm" ; fi;;295 rrtm) opt_rad="-rad rrtm" ;; 305 296 ecrad) opt_rad="-rad ecrad" ;; 306 297 *) echo Only oldrad rrtm ecrad for rad option ; exit 307 298 esac 308 309 if [ $lmdzsvn -le 4185 -a $rad = "ecrad" ] ; then echo "ecrad only available for LMDZ rev starting with 4186 " ; exit ; fi310 311 312 299 313 300 … … 322 309 323 310 suffix=_${resol_atm_3d}_phylmd 324 if [ $lmdzsvn -ge 4186 ] ; then suffix=${suffix}_${rad} ; fi311 suffix=${suffix}_${rad} 325 312 326 313 # Find executable suffix
Note: See TracChangeset
for help on using the changeset viewer.