Changeset 5041


Ignore:
Timestamp:
03/31/20 11:39:13 (4 years ago)
Author:
acosce
Message:

Add lines to manage case when compilation of LMDZ was previsouly interupted prematured

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/compile_lmdzorinca.sh

    r4706 r5041  
    247247    echo >> $outfile ; echo " NOW COMPILE LMDZ REGULAR LAT-LON MODE. Resolution = ${resol_atm_3d}"   >> $outfile  
    248248 
     249 
     250    # Check if the compilation of LMDZ was previsouly interupted prematured.  
     251    # In that case, the files dimension.h and .lock exist. If the files exist, they are here removed to avoid makelmdz_fcm  
     252    # to ask question and wait for interactivly answer from the user. 
     253    if [ -f libf/grid/dimensions.h ] || [ -f .lock ] ; then 
     254        echo >> $outfile 
     255        echo " WARNING!! The file LMDZ/libf/grid/dimension.h and/or the LMDZ/.lock exist. "   >> $outfile 
     256        echo "           This means that the compilation is either currently on going in another terminal was previous interupted before the end."   >> $outfile 
     257        echo "           The files dimension.h and .lock will now be removed. "   >> $outfile 
     258        echo >> $outfile 
     259        rm -f libf/grid/dimensions.h 
     260        rm -f .lock 
     261    fi 
     262 
     263 
     264 
     265 
     266 
    249267    echo ./makelmdz_fcm -d ${resol_atm_3d} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -chimie INCA -arch $fcm_arch -arch_path $arch_path -j 8 $full_flag gcm    >> $outfile  
    250268         ./makelmdz_fcm -d ${resol_atm_3d} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -chimie INCA -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.