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

Add source of arch environment before modeles compilation

File:
1 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 
Note: See TracChangeset for help on using the changeset viewer.