Changeset 5546


Ignore:
Timestamp:
01/08/21 18:11:34 (5 months ago)
Author:
acosce
Message:

update compilation script for lmdzorinca_v7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v7/ICOLMDZORINCA_v7/compile_lmdzorinca.sh

    r5545 r5546  
    139139    # Find out current host and source specific paths and commands for the host 
    140140    case $( hostname -s ) in 
    141         ada*) 
    142             fcm_arch=X64_ADA;; 
     141        jean-zay*) 
     142            fcm_arch=X64_JEANZAY;; 
    143143        irene170|irene171|irene190|irene191|irene192|irene193) 
    144144            fcm_arch=X64_IRENE;; 
     
    250250    echo >> $outfile ; echo " NOW COMPILE LMDZ REGULAR LAT-LON MODE. Resolution = ${resol_atm_3d}"   >> $outfile  
    251251 
     252 
     253    # Check if the compilation of LMDZ was previsouly interupted prematured.  
     254    # In that case, the files dimension.h and .lock exist. If the files exist, they are here removed to avoid makelmdz_fcm  
     255    # to ask question and wait for interactivly answer from the user. 
     256    if [ -f libf/grid/dimensions.h ] || [ -f .lock ] ; then 
     257        echo >> $outfile 
     258        echo " WARNING!! The file LMDZ/libf/grid/dimension.h and/or the LMDZ/.lock exist. "   >> $outfile 
     259        echo "           This means that the compilation is either currently on going in another terminal was previous interupted before the end."   >> $outfile 
     260        echo "           The files dimension.h and .lock will now be removed. "   >> $outfile 
     261        echo >> $outfile 
     262        rm -f libf/grid/dimensions.h 
     263        rm -f .lock 
     264    fi 
     265 
     266 
     267 
     268 
     269 
    252270    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  
    253271         ./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 
     
    280298    # Move executables to modipsl/bin folder 
    281299    echo "Move gcm.e and ce0l executable to modipsl/bin" 
    282     if [ -f $modipsl/modeles/LMDZ/bin/gcm${suffix}.e ] ; then  
    283         mv $modipsl/modeles/LMDZ/bin/gcm${suffix}.e $modipsl/bin/gcm_${resol_atm_3d}_${optmode}_${optchimie}.e ;  
     300    if [ -f $modipsl/modeles/LMDZ/bin/gcm${suffix}.e ] ;  then  
     301         mv $modipsl/modeles/LMDZ/bin/gcm${suffix}.e $modipsl/bin/gcm_${resol_atm_3d}_${optmode}_${optchimie}.e ;  
     302     
    284303    else 
    285         echo "THERE IS A PROBLEM IN EXECUTABLE CREATION - STOP" 
    286         exit 
     304        echo "THERE IS A PROBLEM IN EXECUTABLE CREATION - STOP" 
     305        exit 
     306 
    287307    fi 
    288308#    if [ -f $modipsl/modeles/LMDZ/bin/ce0l${suffix}.e ] ;  then mv $modipsl/modeles/LMDZ/bin/ce0l${suffix}.e $modipsl/bin/ce0l_${resol_atm_3d}_${optmode}_${optchimie}.e ; fi 
Note: See TracChangeset for help on using the changeset viewer.