Ignore:
Timestamp:
07/31/19 13:50:23 (5 years ago)
Author:
jgipsl
Message:
  • Add date on the output text file to avoid deleating preivously file if recompilation
  • Check and remove dimensions.h and .lock in LMDZ to avoid makelmdz_fcm interupt the compilation with the question:

"WARNING: you are probably already compiling the model somewhere else.
Wait until the first compilation is finished before launching this one.
If you are sure that you are not compiling elsewhere, just answer
yes (or 'oui') to the question below to proceed.
Do you wish to continue?"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/IPSLCM6.2/compile_ipslcm6.sh

    r4611 r4622  
    3939 
    4040# Output text file for compilation of each component 
    41 outfile=$submitdir/out_compile_ipslcm6 
    42 rm -f $outfile; echo > $outfile 
     41datestr=`LC_ALL=C date +"%Y%m%dT%H%M"` 
     42outfile=$submitdir/out_compile_ipslcm6.$datestr 
     43echo > $outfile 
    4344echo; echo "Text output from compilation will be stored in file out_compile_ipslcm6"; echo  
    4445 
     
    312313echo >> $outfile ; echo " NOW COMPILE LMDZ REGULAR LAT-LON MODE. Resolution = ${resol_atm}"   >> $outfile  
    313314 
     315# Check if the compilation of LMDZ was previsouly interupted prematured.  
     316# In that case, the files dimension.h and .lock exist. If the files exist, they are here removed to avoid makelmdz_fcm  
     317# to ask question and wait for interactivly answer from the user. 
     318if [ -f libf/grid/dimensions.h ] || [ -f .lock ] ; then 
     319  echo >> $outfile 
     320  echo " WARNING!! The file LMDZ/libf/grid/dimension.h and/or the LMDZ/.lock exist. "   >> $outfile 
     321  echo "           This means that the compilation is either currently on going in another terminal was previous interupted before the end."   >> $outfile 
     322  echo "           The files dimension.h and .lock will now be removed. "   >> $outfile 
     323  echo >> $outfile 
     324  rm -f libf/grid/dimensions.h 
     325  rm -f .lock 
     326fi 
     327 
    314328echo ./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  
    315329./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 
Note: See TracChangeset for help on using the changeset viewer.