Changeset 4452


Ignore:
Timestamp:
06/05/19 18:10:23 (5 years ago)
Author:
jgipsl
Message:
  • If the file ARCH/arch.env exist, instead of sourcing it in the compile_lmdzor.sh, now let each component compile script use it using -arch_path $arch_path.
  • module purge gives error message at irene which made a crash in makelmdz_fcm. To avoid this, add set +e in arch.env for irene.
  • add arch.env for ciclad
File:
1 edited

Legend:

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

    r4411 r4452  
    129129fi 
    130130 
    131 # Set a link to arch.env and source the file if arch-${fcm_arch}.env file exist for current fcm_arch. 
     131# Set a link to arch.env if arch-${fcm_arch}.env file exist for current fcm_arch. 
    132132# The link arch.env is also set in config.card and will be used by libIGCM to ensure the same running environnement. 
    133133if [ -f ARCH/arch-${fcm_arch}.env ] ; then 
    134134    echo >> $outfile 
    135     echo "The file ARCH/arch-${fcm_arch}.env will now be sourced with modules needed for compilation." 
    136     echo "Note that this new environement will be kept after compilation." 
    137     echo "You might want to source again your personal environment after compilation. This must be done manually or by reconnection." 
    138     echo " Personal module list before sourcing of ARCH/arch.env file:"    >> $outfile  
    139     module list   >> $outfile 2>&1 
    140  
     135    echo "The file ARCH/arch-${fcm_arch}.env will be used for the compilation of each component" 
    141136    rm -f ARCH/arch.env 
    142137    ln -s arch-${fcm_arch}.env ARCH/arch.env 
    143     source ARCH/arch.env   >> $outfile 2>&1 
    144  
    145     echo >> $outfile 
    146     echo " New module list after sourcing of ARCH/arch.env file:"    >> $outfile  
    147     module list   >> $outfile 2>&1 
    148138fi 
    149139 
     
    194184echo >> $outfile ; echo " NOW COMPILE ORCHIDEE"   >> $outfile  
    195185 
    196 echo    ./makeorchidee_fcm -j 8 -xios -parallel $parallel -$optmode -arch ${fcm_arch} $full_flag    >> $outfile  
    197         ./makeorchidee_fcm -j 8 -xios -parallel $parallel -$optmode -arch ${fcm_arch} $full_flag    >> $outfile 2>&1 
     186echo    ./makeorchidee_fcm -j 8 -xios -parallel $parallel -$optmode -arch ${fcm_arch} -arch_path $arch_path $full_flag -driver   >> $outfile  
     187        ./makeorchidee_fcm -j 8 -xios -parallel $parallel -$optmode -arch ${fcm_arch} -arch_path $arch_path $full_flag -driver    >> $outfile 2>&1 
    198188# Test if compiling finished 
    199189if [[ $? != 0 ]] ; then 
     
    211201    echo >> $outfile ; echo " NOW COMPILE LMDZ REGULAR LAT-LON MODE. Resolution = ${resol_atm_3d}"   >> $outfile  
    212202 
    213     echo ./makelmdz_fcm -d ${resol_atm_3d} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -j 8 $full_flag gcm    >> $outfile  
    214          ./makelmdz_fcm -d ${resol_atm_3d} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -j 8 $full_flag gcm    >> $outfile 2>&1 
     203    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 gcm    >> $outfile  
     204         ./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 gcm    >> $outfile 2>&1 
    215205    # Test if compiling finished 
    216206    if [[ $? != 0 ]] ; then 
     
    223213    echo >> $outfile ; echo " NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm_3d}"   >> $outfile  
    224214 
    225     echo ./makelmdz_fcm -d ${resol_atm_3d} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -j 8 $full_flag ce0l    >> $outfile  
    226          ./makelmdz_fcm -d ${resol_atm_3d} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -j 8 $full_flag ce0l    >> $outfile 2>&1 
     215    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  
     216         ./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 
    227217    # Test if compiling finished 
    228218    if [[ $? != 0 ]] ; then 
Note: See TracChangeset for help on using the changeset viewer.