Changeset 4973 for CONFIG


Ignore:
Timestamp:
02/24/20 11:43:29 (4 years ago)
Author:
jgipsl
Message:
  • Change automatiquement -parallel mpi_omp vers -parallel mpi sur obelix
  • Ajoute test si le fichier fcm.bld.lock dans la compilatiation d'ORCHIDEE et efface le s'il existe
File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/LMDZOR_v6.3/compile_lmdzor.sh

    r4972 r4973  
    106106            fcm_arch=X64_IRENE;; 
    107107        asterix*|obelix*) 
    108             fcm_arch=ifort_LSCE;; 
    109         ciclad*|climserv*) 
     108            fcm_arch=ifort_LSCE 
     109            if [ "${parallel}" == "mpi_omp" ] ; then  
     110               echo "Warning!! Currently at Obelix hybrid mode is not possible." 
     111               echo "          Option -parallel mpi_omp is now changed to -parallel mpi" 
     112               echo "" 
     113               parallel=mpi 
     114            else 
     115               echo "You used -parallel" $parallel 
     116            fi ;; 
     117        ciclad*|climserv*|loholt*|camelot*) 
    110118            fcm_arch=ifort_CICLAD;; 
    111119        *) 
     
    182190echo; echo "NOW COMPILE ORCHIDEE" 
    183191echo >> $outfile ; echo " NOW COMPILE ORCHIDEE"   >> $outfile  
     192 
     193# Check if the compilation of ORCHIDEE was previsouly interupted prematured.  
     194# In that case, the files fcm.bld.lock exist. If the file exist, it is here removed to avoid makeorchidee_fcm  
     195# to ask question and wait for interactivly answer from the user. 
     196if [ -f build/fcm.bld.lock ] ; then 
     197    echo >> $outfile 
     198    echo " WARNING!! The file ORCHIDEE/build/fcm.bld.lock exist. "   >> $outfile 
     199    echo "           This means that the compilation is either currently on going in another terminal was previous interupted before the end."   >> $outfile 
     200    echo "           The file will now be removed. "   >> $outfile 
     201    echo >> $outfile 
     202    rm -f build/fcm.bld.lock 
     203fi 
    184204 
    185205echo    ./makeorchidee_fcm -j 8 -xios -parallel $parallel -$optmode -arch ${fcm_arch} -arch_path $arch_path $full_orch -driver   >> $outfile  
Note: See TracChangeset for help on using the changeset viewer.