mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
GIT: Initial state after latest Foundation merge
This commit is contained in:
63
etc/cshrc
63
etc/cshrc
@ -36,25 +36,25 @@ setenv WM_PROJECT_VERSION plus
|
||||
################################################################################
|
||||
# USER EDITABLE PART: Changes made here may be lost with the next upgrade
|
||||
#
|
||||
# either setenv FOAM_INST_DIR before sourcing this file or set
|
||||
# 'foamInstall' below to where OpenFOAM is installed
|
||||
# FOAM_INST_DIR is the location of the OpenFOAM installation which defaults to
|
||||
# the directory containing this file.
|
||||
#
|
||||
# Location of the OpenFOAM installation
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
set foamInstall = $HOME/$WM_PROJECT
|
||||
# set foamInstall = ~$WM_PROJECT
|
||||
# set foamInstall = /opt/$WM_PROJECT
|
||||
# set foamInstall = /usr/local/$WM_PROJECT
|
||||
# Please set to the appropriate path if the default is not correct.
|
||||
#
|
||||
setenv FOAM_INST_DIR `lsof +p $$ |& grep -oE '/.*'$WM_PROJECT'[^/]*/etc/cshrc' | \
|
||||
sed 's%/'$WM_PROJECT'[^/]*/etc/cshrc%%'`
|
||||
echo $FOAM_INST_DIR
|
||||
# setenv FOAM_INST_DIR $HOME/$WM_PROJECT
|
||||
# setenv FOAM_INST_DIR ~$WM_PROJECT
|
||||
# setenv FOAM_INST_DIR /opt/$WM_PROJECT
|
||||
# setenv FOAM_INST_DIR /usr/local/$WM_PROJECT
|
||||
#
|
||||
# END OF (NORMAL) USER EDITABLE PART
|
||||
################################################################################
|
||||
|
||||
#
|
||||
# These are the defaults for this version which should generally be
|
||||
# overridden from the prefs.csh file or from command-line specification
|
||||
#
|
||||
#- note the location for later use (eg, in job scripts)
|
||||
if ( ! $?FOAM_INST_DIR ) setenv FOAM_INST_DIR $foamInstall
|
||||
# The default environment variables below can be overridden in a prefs.sh file
|
||||
# located in ~/.OpenFOAM/$WM_PROJECT_VERSION, ~/.OpenFOAM,
|
||||
# $FOAM_INST_DIR/site/$WM_PROJECT_VERSION or $FOAM_INST_DIR/site
|
||||
|
||||
#- Compiler location:
|
||||
# WM_COMPILER_TYPE = system | ThirdParty (OpenFOAM)
|
||||
@ -104,16 +104,23 @@ setenv FOAM_SIGFPE
|
||||
|
||||
################################################################################
|
||||
|
||||
# The old dirs to be cleaned from the various environment variables
|
||||
# - remove anything under top-level directory.
|
||||
# NB: the WM_PROJECT_INST_DIR might not be identical between versions
|
||||
set foamOldDirs="$FOAM_INST_DIR $HOME/$WM_PROJECT/$LOGNAME"
|
||||
if ( $?WM_PROJECT_INST_DIR ) then
|
||||
if ( "$WM_PROJECT_INST_DIR" != "$FOAM_INST_DIR" ) then
|
||||
set foamOldDirs="$WM_PROJECT_INST_DIR $foamOldDirs"
|
||||
endif
|
||||
# The old dirs to be cleaned from the environment variables
|
||||
set foamOldDirs=
|
||||
if ( $?WM_PROJECT_DIR ) then
|
||||
set foamOldDirs="$foamOldDirs $WM_PROJECT_DIR"
|
||||
endif
|
||||
if ( $?WM_THIRD_PARTY_DIR ) then
|
||||
set foamOldDirs="$foamOldDirs $WM_THIRD_PARTY_DIR"
|
||||
endif
|
||||
if ( $?WM_PROJECT ) then
|
||||
set foamOldDirs="$foamOldDirs $HOME/$WM_PROJECT/$LOGNAME"
|
||||
endif
|
||||
if ( $?FOAM_SITE_APPBIN ) then
|
||||
set foamOldDirs="$foamOldDirs $FOAM_SITE_APPBIN"
|
||||
endif
|
||||
if ( $?FOAM_SITE_LIBBIN ) then
|
||||
set foamOldDirs="$foamOldDirs $FOAM_SITE_LIBBIN"
|
||||
endif
|
||||
|
||||
|
||||
# Location of installation
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
@ -210,7 +217,10 @@ _foamSource $WM_PROJECT_DIR/etc/config.csh/aliases
|
||||
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config.csh/mpi`
|
||||
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config.csh/paraview`
|
||||
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config.csh/ensight`
|
||||
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config.csh/CGAL`
|
||||
|
||||
if ( ($?FOAMY_HEX_MESH) ) then
|
||||
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config.csh/CGAL`
|
||||
endif
|
||||
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config.csh/FFTW`
|
||||
|
||||
|
||||
@ -234,9 +244,10 @@ if ( $?LD_PRELOAD ) then
|
||||
if ( $status == 0 ) setenv LD_PRELOAD $cleaned
|
||||
endif
|
||||
|
||||
# cleanup environment:
|
||||
|
||||
# Cleanup environment:
|
||||
# ~~~~~~~~~~~~~~~~~~~~
|
||||
unset cleaned foamClean foamInstall foamOldDirs
|
||||
unset cleaned foamClean foamOldDirs
|
||||
unalias _foamSource
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user