Changeset 6307 for CONFIG


Ignore:
Timestamp:
01/10/23 12:31:58 (16 months ago)
Author:
acosce
Message:

Add source of arch environment before modeles compilation

Location:
CONFIG/UNIFORM/v6
Files:
2 edited

Legend:

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

    r6299 r6307  
    173173if [ -f ARCH/arch-${fcm_arch}.env ] ; then 
    174174    echo >> $outfile 
    175     echo "The file ARCH/arch-${fcm_arch}.env will be used for the compilation of each component" 
     175    echo "The file ARCH/arch-${fcm_arch}.env will now be sourced with modules needed for compilation for all components." 
     176    echo "Note that this new environement might be kept after compilation."  
     177    echo "If this is the case, source again your personal environment after compilation. " 
     178    echo " Personal module list before sourcing of ARCH/arch.env file:"    >> $outfile   
     179    module list   >> $outfile 2>&1  
     180    # Get initial svn version 
     181    svn_version=$(module list -t | grep subversion) 
     182     
     183    # Make a link to this file, to be used also in config.card 
    176184    rm -f ARCH/arch.env 
    177185    ln -s arch-${fcm_arch}.env ARCH/arch.env 
     186 
     187    # Source the file 
     188    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 
     193 
     194    echo >> $outfile  
     195    echo " New module list after sourcing of ARCH/arch.env file:"    >> $outfile   
     196    module list   >> $outfile 2>&1  
    178197fi 
    179198 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6.3/compile_lmdzorinca.sh

    r5975 r6307  
    161161if [ -f ARCH/arch-${fcm_arch}.env ] ; then 
    162162    echo >> $outfile 
    163     echo "The file ARCH/arch-${fcm_arch}.env will be used for the compilation of each component" 
     163    echo "The file ARCH/arch-${fcm_arch}.env will now be sourced with modules needed for compilation for all components." 
     164    echo "Note that this new environement might be kept after compilation."  
     165    echo "If this is the case, source again your personal environment after compilation. " 
     166    echo " Personal module list before sourcing of ARCH/arch.env file:"    >> $outfile   
     167    module list   >> $outfile 2>&1  
     168    # Get initial svn version 
     169    svn_version=$(module list -t | grep subversion) 
     170     
     171    # Make a link to this file, to be used also in config.card 
    164172    rm -f ARCH/arch.env 
    165173    ln -s arch-${fcm_arch}.env ARCH/arch.env 
     174 
     175    # Source the file 
     176    source ARCH/arch.env   >> $outfile 2>&1  
     177    if [ X$svn_version != X ] ; then 
     178        # Put back initial version of svn 
     179        module load ${svn_version} 
     180    fi 
     181 
     182    echo >> $outfile  
     183    echo " New module list after sourcing of ARCH/arch.env file:"    >> $outfile   
     184    module list   >> $outfile 2>&1  
    166185fi 
    167186 
Note: See TracChangeset for help on using the changeset viewer.