Changeset 5907
- Timestamp:
- 08/05/21 12:10:25 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/UNIFORM/v7/ICOLMDZORINCA_v7/compile_icolmdzorinca.sh
r5705 r5907 31 31 full_dyna="" 32 32 optchimie=GES 33 resol_atm="144x142x79" 33 34 34 35 # Default netcdf_lib is used for XIOS but can be change by argument … … 39 40 outfile=$submitdir/out_compile_icolmdzorinca.$datestr 40 41 echo > $outfile 41 echo; echo "Text output from compilation will be stored in file out_compile_icolmdzor .$datestr"; echo42 echo; echo "Text output from compilation will be stored in file out_compile_icolmdzorinca.$datestr"; echo 42 43 43 44 #### Read arguments … … 323 324 324 325 ## 2.7 Compile LMDZ for regular latlon configuration 325 if [ $regular_latlon = yes ] ; then 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 fi 326 327 328 cd $modipsl/modeles/LMDZ 329 # Compile LMDZ regular lat-lon exectuable 330 echo; echo "NOW COMPILE LMDZ REGULAR LAT-LON MODE. Resolution = ${resol_atm}" 331 echo >> $outfile ; echo " NOW COMPILE LMDZ REGULAR LAT-LON MODE. Resolution = ${resol_atm}" >> $outfile 332 333 # Check if the compilation of LMDZ was previsouly interupted prematured. 334 # In that case, the files dimension.h and .lock exist. If the files exist, they are here removed to avoid makelmdz_fcm 335 # to ask question and wait for interactivly answer from the user. 336 if [ -f libf/grid/dimensions.h ] || [ -f .lock ] ; then 337 echo >> $outfile 338 echo " WARNING!! The file LMDZ/libf/grid/dimension.h and/or the LMDZ/.lock exist. " >> $outfile 339 echo " This means that the compilation is either currently on going in another terminal was previous interupted before the end." >> $outfile 340 echo " The files dimension.h and .lock will now be removed. " >> $outfile 341 echo >> $outfile 342 rm -f libf/grid/dimensions.h 343 rm -f .lock 344 fi 345 echo ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -chimie INCA -arch $fcm_arch -j 8 $full_lmdz gcm >> $outfile 346 ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -chimie INCA -arch $fcm_arch -j 8 $full_lmdz gcm >> $outfile 2>&1 347 # Test if compiling finished 348 if [[ $? != 0 ]] ; then 349 echo "THERE IS A PROBLEM IN LMDZ REGULAR LATLON COMPILATION - STOP" 350 echo "ALL INFORMATION IN FILE $outfile" 351 exit 352 fi 353 354 # Compile ce0l initialization program for LMDZ regular lat-lon exectuable 355 echo; echo "NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm}" 356 echo >> $outfile ; echo " NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm}" >> $outfile 357 358 echo ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -chimie INCA -arch $fcm_arch -j 8 $full_lmdz ce0l >> $outfile 359 ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -chimie INCA -arch $fcm_arch -j 8 $full_lmdz ce0l >> $outfile 2>&1 360 # Test if compiling finished 361 if [[ $? != 0 ]] ; then 362 echo "THERE IS A PROBLEM IN CE0L (LMDZ) REGULAR LATLON COMPILATION - STOP" 363 echo "ALL INFORMATION IN FILE $outfile" 364 exit 365 fi 366 367 # Find executable suffix 368 if [ $parallel == seq ] || [ $parallel == none ] ; then 369 suffix=_${resol_atm}_phylmd_seq_orch_inca.e 370 else 371 suffix=_${resol_atm}_phylmd_para_mem_orch_inca.e 372 fi 373 echo gcm suffix = $suffix 374 375 # Move executables to modipsl/bin folder 376 echo "Move gcm.e and ce0l executable to modipsl/bin" 377 if [ -f $modipsl/modeles/LMDZ/bin/gcm${suffix} ] ; then 378 mv $modipsl/modeles/LMDZ/bin/gcm${suffix} $modipsl/bin/gcm_${resol_atm}_${optmode}_${optchimie}.e 379 else 380 echo "ERROR gcm${suffix} executable does not exist." 381 echo "THERE IS A PROBLEM IN LMDZ REGULAR LATLON COMPILATION - STOP" 382 echo "ALL INFORMATION IN FILE $outfile" 383 exit 384 fi 385 386 if [ -f $modipsl/modeles/LMDZ/bin/ce0l${suffix} ] ; then 387 mv $modipsl/modeles/LMDZ/bin/ce0l${suffix} $modipsl/bin/ce0l_${resol_atm}_${optmode}_${optchimie}.e 388 else 389 echo "ERROR ce0l${suffix} executable does not exist." 390 echo "THERE IS A PROBLEM IN LMDZ REGULAR LATLON COMPILATION - STOP" 391 echo "ALL INFORMATION IN FILE $outfile" 392 exit 393 fi 394 394 395 395 396
Note: See TracChangeset
for help on using the changeset viewer.