Changeset 4622


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?"

Location:
CONFIG/UNIFORM/v6
Files:
2 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 
  • CONFIG/UNIFORM/v6/LMDZOR_v6.2/compile_lmdzor.sh

    r4472 r4622  
    2929 
    3030# Output text file for compilation of each component 
    31 outfile=$submitdir/out_compile_lmdzor 
    32 rm -f $outfile; echo > $outfile 
     31datestr=`LC_ALL=C date +"%Y%m%dT%H%M"` 
     32outfile=$submitdir/out_compile_lmdzor.$datestr 
     33echo > $outfile 
    3334echo; echo "Text output from compilation will be stored in file out_compile_lmdzor"; echo  
    3435 
     
    206207echo >> $outfile ; echo " NOW COMPILE LMDZ REGULAR LAT-LON MODE. Resolution = ${resol_atm}"   >> $outfile  
    207208 
     209# Check if the compilation of LMDZ was previsouly interupted prematured.  
     210# In that case, the files dimension.h and .lock exist. If the files exist, they are here removed to avoid makelmdz_fcm  
     211# to ask question and wait for interactivly answer from the user. 
     212if [ -f libf/grid/dimensions.h ] || [ -f .lock ] ; then 
     213  echo >> $outfile 
     214  echo " WARNING!! The file LMDZ/libf/grid/dimension.h and/or the LMDZ/.lock exist. "   >> $outfile 
     215  echo "           This means that the compilation is either currently on going in another terminal was previous interupted before the end."   >> $outfile 
     216  echo "           The files dimension.h and .lock will now be removed. "   >> $outfile 
     217  echo >> $outfile 
     218  rm -f libf/grid/dimensions.h 
     219  rm -f .lock 
     220fi 
     221 
    208222echo ./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  
    209223./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.