Ignore:
Timestamp:
01/05/23 16:21:41 (17 months ago)
Author:
jgipsl
Message:

Add a quickfix related to the subversion module. If there was a module for subversion loaded in the begining of the compilation, the same module will be loaded after the arch.env file has been sourced. We here suppose that the arch.env file contains a module purge which is currently the case for the arch.env in ARCH folder. This quickfix was done previously in ICOLMDZ configurations by A. Caubel.

Note that for compile_lmdzorinca.sh only an echo was added.

File:
1 edited

Legend:

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

    r6261 r6299  
    152152    echo " Personal module list before sourcing of ARCH/arch.env file:"    >> $outfile   
    153153    module list   >> $outfile 2>&1  
    154  
     154    # Get initial svn version 
     155    svn_version=$(module list -t | grep subversion) 
     156     
    155157    # Make a link to this file, to be used also in config.card 
    156158    rm -f ARCH/arch.env 
     
    159161    # Source the file 
    160162    source ARCH/arch.env   >> $outfile 2>&1  
     163    if [ X$svn_version != X ] ; then 
     164        # Put back initial version of svn 
     165        module load ${svn_version} 
     166    fi 
     167 
    161168    echo >> $outfile  
    162169    echo " New module list after sourcing of ARCH/arch.env file:"    >> $outfile   
     
    243250# Retrieve the final svn release number, needed for radiative code suffix of executable 
    244251lmdzsvn=`svnversion . | egrep -o "[0-9]+"  | awk 'NR==1'` 
     252echo >> $outfile ; echo "lmdzsvn= $lmdzsvn "   >> $outfile 
    245253 
    246254# Check if the compilation of LMDZ was previsouly interupted prematured.  
Note: See TracChangeset for help on using the changeset viewer.