Changeset 6218 for CONFIG/UNIFORM


Ignore:
Timestamp:
08/02/22 14:21:37 (20 months ago)
Author:
acosce
Message:

update compilation script for ICOLMDZORINCA_v6.2

  • typo error
  • add option ce0l
File:
1 edited

Legend:

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

    r6213 r6218  
    1818# Resolution of LMDZ in regular mode 
    1919regular_latlon=yes 
    20 resol_atm_3d=96x95x39 
     20resol_atm_3d=144x142x79 
     21# Also compile ce0l subprogram to LMDZ (y/n) 
     22ce0l=n 
     23 
    2124optchimie=NMHC_AER_S 
    2225#recompilation de inca seul ou de tous les modeles 
     
    4245outfile=$submitdir/out_compile_lmdzorinca.$datestr 
    4346echo > $outfile 
    44 echo; echo "Text output from compilation will be stored in file out_compile_lmdzor.$datestr"; echo  
     47echo; echo "Text output from compilation will be stored in file out_compile_lmdzorinca.$datestr"; echo  
    4548 
    4649#### Read arguments  
     
    106109            optmode=prod ; shift ;; 
    107110 
     111        "-ce0l")              
     112            ce0l=y ; shift ;; 
     113 
    108114        "-rad")         
    109115            rad=$2; shift ; shift;; 
     
    131137    esac 
    132138done 
    133 echo; echo "********************* WARNING **********************" 
    134 echo; echo "********************* WARNING **********************" 
    135 echo; echo " if you are working with an lmdz version before rev 3563 (check it with command svn info) " 
    136 echo "you need to modify phylmd/physiq_mod.F90 file "  
    137 echo "add ! to comment lines if/endif before and after the call to AEROSOL_METEO_CALC" 
    138 echo; echo "********************* WARNING **********************" 
    139 echo; echo "********************* WARNING **********************" 
    140139 
    141140echo "Following arguments are set in current compiling:" >> $outfile  
    142141echo "   optmode = $optmode, parallel = $parallel, fcm_arch = $fcm_arch, full_flag=$full_flag regular_latlon=$regular_latlon" >> $outfile  
     142echo "   ce0l=${ce0l}" >> $outfile  
    143143echo "   chimie = $optchimie, clean_inca = ${clean_inca}"  
    144144echo >> $outfile 
     
    301301    fi 
    302302 
    303 #    # Compile ce0l initialization program for LMDZ regular lat-lon exectuable 
    304 #    echo; echo "NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm_3d}" 
    305 #    echo >> $outfile ; echo " NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm_3d}"   >> $outfile  
    306 # 
    307 #    echo ./makelmdz_fcm -d ${resol_atm_3d} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_flag ce0l    >> $outfile  
    308 #         ./makelmdz_fcm -d ${resol_atm_3d} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_flag ce0l    >> $outfile 2>&1 
    309 #    # Test if compiling finished 
    310 #    if [[ $? != 0 ]] ; then 
    311 #       echo "THERE IS A PROBLEM IN CE0L (LMDZ) REGULAR LATLON COMPILATION - STOP" 
    312 #       exit 
    313 #    fi 
    314 # 
    315  
    316  
    317  
    318303 
    319304    suffix=_${resol_atm_3d}_phylmd 
     
    338323 
    339324    fi 
    340 #    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 
     325 
     326# Compile ce0l initialization program for LMDZ regular lat-lon exectuable 
     327if [ $ce0l == y ] ; then 
     328    echo; echo "NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm}" 
     329    echo >> $outfile ; echo " NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm}"   >> $outfile  
     330     
     331 
     332    echo ./makelmdz_fcm -d ${resol_atm_3d} -p lmd ${opt_rad} -$optmode  -arch $fcm_arch -chimie INCA -arch_path $arch_path -j 8 $full_lmdz ce0l    >> $outfile  
     333         ./makelmdz_fcm -d ${resol_atm_3d} -p lmd ${opt_rad} -$optmode  -arch $fcm_arch -chimie INCA -arch_path $arch_path -j 8 $full_lmdz ce0l    >> $outfile 2>&1 
     334    # Test if compiling finished 
     335    if [[ $? != 0 ]] ; then 
     336        echo "THERE IS A PROBLEM IN CE0L (LMDZ) REGULAR LATLON COMPILATION - STOP" 
     337        exit 
     338    fi 
     339 
     340     
     341    # Move executables to modipsl/bin folder 
     342    echo >> $outfile 
     343    echo "Move ce0l.e executable to modipsl/bin" >> $outfile 
     344    echo ls -lrt $modipsl/modeles/LMDZ/bin   >> $outfile 
     345    ls -lrt $modipsl/modeles/LMDZ/bin  >> $outfile 
     346    echo >> $outfile 
     347    suffix=_${resol_atm_3d}_phylmd_seq.e 
     348    echo ce0l suffix = $suffix 
     349 
     350    if [ -f $modipsl/modeles/LMDZ/bin/ce0l${suffix} ] ;  then  
     351        mv $modipsl/modeles/LMDZ/bin/ce0l${suffix} $modipsl/bin/ce0l_${resol_atm}_${optmode}_${optchimie}.e 
     352    else 
     353        echo "ERROR ce0l${suffix} executable does not exist."  
     354        echo "THERE IS A PROBLEM IN CE0L (LMDZ) REGULAR LATLON COMPILATION - STOP" 
     355        exit 
     356    fi   
     357fi 
     358 
     359 
    341360 
    342361fi 
Note: See TracChangeset for help on using the changeset viewer.