Ignore:
Timestamp:
05/16/23 11:49:41 (13 months ago)
Author:
jgipsl
Message:

Correction for option -regular_latlon

  • Correcte suffix for gcm (add _couple).
  • Move executable for gcm directly after the compilation (otherwise, if ce0l fails, the gcm executable will not be copied either).
  • Compilation of ce0l needs to have the same option "-c OMT" as the gcm.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v7/IPSLCM7/compile_ipslcm7.sh

    r6445 r6457  
    347347 
    348348 
     349 
    349350## 2.5 Compile DYNAMICO 
    350351cd $modipsl/modeles/DYNAMICO 
     
    409410    fi 
    410411 
    411     # Compile ce0l initialization program for LMDZ regular lat-lon exectuable 
    412     echo; echo "NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm}" 
    413     echo >> $outfile ; echo " NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm}"   >> $outfile  
    414  
    415     echo ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -j 8 $full_lmdz ce0l    >> $outfile  
    416          ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -j 8 $full_lmdz ce0l    >> $outfile 2>&1 
    417     # Test if compiling finished 
    418     if [[ $? != 0 ]] ; then 
    419         echo "THERE IS A PROBLEM IN CE0L (LMDZ) REGULAR LATLON COMPILATION - STOP" 
    420         exit 
    421     fi 
    422  
    423 # Find executable suffix 
    424 suffix=_${resol_atm}_phylmd 
    425 if [ $lmdzsvn -ge 4186 ] ; then suffix=${suffix}_${rad} ; fi 
    426 if [ $parallel == seq ] || [ $parallel == none ] ; then 
    427     suffix=${suffix}_seq_orch.e 
    428 else 
    429     suffix=${suffix}_para_mem_orch.e 
    430 fi 
    431 echo gcm suffix = $suffix 
     412    # Find executable suffix 
     413    suffix=_${resol_atm}_phylmd 
     414    if [ $lmdzsvn -ge 4186 ] ; then suffix=${suffix}_${rad} ; fi 
     415    if [ $parallel == seq ] || [ $parallel == none ] ; then 
     416        suffix=${suffix}_seq_orch.e 
     417    else 
     418        suffix=${suffix}_para_mem_orch_couple.e 
     419    fi 
     420    echo gcm suffix = $suffix 
    432421 
    433422     
    434     # Move executables to modipsl/bin folder 
    435     echo "Move gcm.e and ce0l executable to modipsl/bin" 
     423    # Move executable gcm to modipsl/bin folder 
     424    echo "Move gcm.e executable to modipsl/bin" 
    436425    if [ -f $modipsl/modeles/LMDZ/bin/gcm${suffix} ] ;  then 
    437426        mv $modipsl/modeles/LMDZ/bin/gcm${suffix} $modipsl/bin/gcm_${resol_atm}_${optmode}.e 
     
    441430        exit 
    442431    fi 
    443  
     432     
     433    # Compile ce0l initialization program for LMDZ regular lat-lon exectuable 
     434    echo; echo "NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm}" 
     435    echo >> $outfile ; echo " NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm}"   >> $outfile  
     436 
     437    echo ./makelmdz_fcm -d ${resol_atm} -c OMT -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -j 8 $full_lmdz ce0l    >> $outfile  
     438         ./makelmdz_fcm -d ${resol_atm} -c OMT -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -j 8 $full_lmdz ce0l    >> $outfile 2>&1 
     439    # Test if compiling finished 
     440    if [[ $? != 0 ]] ; then 
     441        echo "THERE IS A PROBLEM IN CE0L (LMDZ) REGULAR LATLON COMPILATION - STOP" 
     442        exit 
     443    fi 
     444 
     445     
     446    # Move executable ce0l to modipsl/bin folder 
     447    echo "Move ce0l executable to modipsl/bin" 
    444448    if [ -f $modipsl/modeles/LMDZ/bin/ce0l${suffix} ] ;  then 
    445449        mv $modipsl/modeles/LMDZ/bin/ce0l${suffix} $modipsl/bin/ce0l_${resol_atm}_${optmode}.e 
Note: See TracChangeset for help on using the changeset viewer.