Changeset 6299 for CONFIG


Ignore:
Timestamp:
01/05/23 16:21:41 (16 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.

Location:
CONFIG/UNIFORM/v6
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/IPSLCM6.2/compile_ipslcm6.sh

    r6276 r6299  
    178178    echo " Personal module list before sourcing of ARCH/arch.env file:"    >> $outfile   
    179179    module list   >> $outfile 2>&1  
     180    # Get initial svn version 
     181    svn_version=$(module list -t | grep subversion) 
    180182 
    181183    # Make a link to this file, to be used also in config.card 
     
    185187    # Source the file 
    186188    source ARCH/arch.env   >> $outfile 2>&1  
     189    if [ X$svn_version != X ] ; then 
     190        # Put back initial version of svn 
     191        module load ${svn_version} 
     192    fi 
    187193    echo >> $outfile  
    188194    echo " New module list after sourcing of ARCH/arch.env file:"    >> $outfile   
     
    372378# Retrieve the final svn release number, needed for radiative code suffix of executable 
    373379lmdzsvn=`svnversion . | egrep -o "[0-9]+"  | awk 'NR==1'` 
     380echo >> $outfile ; echo "lmdzsvn= $lmdzsvn "   >> $outfile 
    374381 
    375382# Check if the compilation of LMDZ was previsouly interupted prematured.  
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/compile_lmdzorinca.sh

    r6219 r6299  
    265265    # Retrieve the final svn release number, needed for radiative code suffix of executable 
    266266    lmdzsvn=`svnversion . | egrep -o "[0-9]+"  | awk 'NR==1'` 
    267  
     267    echo >> $outfile ; echo "lmdzsvn= $lmdzsvn "   >> $outfile 
    268268 
    269269    # Check if the compilation of LMDZ was previsouly interupted prematured.  
  • CONFIG/UNIFORM/v6/LMDZOR_v6.2/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.  
  • CONFIG/UNIFORM/v6/LMDZOR_v6.3/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.  
  • 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.  
  • CONFIG/UNIFORM/v6/LMDZREPR_v6/compile_lmdzrepr.sh

    r6252 r6299  
    161161    echo " Personal module list before sourcing of ARCH/arch.env file:"    >> $outfile   
    162162    module list   >> $outfile 2>&1  
     163    # Get initial svn version 
     164    svn_version=$(module list -t | grep subversion) 
    163165 
    164166    # Make a link to this file, to be used also in config.card 
     
    168170    # Source the file 
    169171    source ARCH/arch.env   >> $outfile 2>&1  
     172    if [ X$svn_version != X ] ; then 
     173        # Put back initial version of svn 
     174        module load ${svn_version} 
     175    fi 
    170176    echo >> $outfile  
    171177    echo " New module list after sourcing of ARCH/arch.env file:"    >> $outfile   
     
    252258# Retrieve the final svn release number, needed for radiative code suffix of executable 
    253259lmdzsvn=`svnversion . | egrep -o "[0-9]+"  | awk 'NR==1'` 
     260echo >> $outfile ; echo "lmdzsvn= $lmdzsvn "   >> $outfile 
    254261 
    255262# Check if the compilation of LMDZ was previsouly interupted prematured.  
Note: See TracChangeset for help on using the changeset viewer.