mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
CONF: consolidate more files into OpenFOAM etc/config
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@ -60,6 +60,8 @@ doc/[Dd]oxygen/man
|
|||||||
# untracked configuration files
|
# untracked configuration files
|
||||||
/etc/prefs.csh
|
/etc/prefs.csh
|
||||||
/etc/prefs.sh
|
/etc/prefs.sh
|
||||||
|
/etc/config/prefs.csh
|
||||||
|
/etc/config/prefs.sh
|
||||||
|
|
||||||
# source packages - anywhere
|
# source packages - anywhere
|
||||||
*.tar.bz2
|
*.tar.bz2
|
||||||
|
|||||||
@ -177,7 +177,7 @@ _foamEval()
|
|||||||
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile prefs.sh`
|
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile prefs.sh`
|
||||||
|
|
||||||
# Evaluate command-line parameters and record settings for later
|
# Evaluate command-line parameters and record settings for later
|
||||||
# these can be used to set/unset values, or specify prefs files
|
# these can be used to set/unset values, or specify alternative pref files
|
||||||
export FOAM_SETTINGS="$@"
|
export FOAM_SETTINGS="$@"
|
||||||
_foamEval $@
|
_foamEval $@
|
||||||
|
|
||||||
@ -201,7 +201,7 @@ export PATH LD_LIBRARY_PATH MANPATH
|
|||||||
# Source project setup files
|
# Source project setup files
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
_foamSource $WM_PROJECT_DIR/etc/settings.sh
|
_foamSource $WM_PROJECT_DIR/etc/settings.sh
|
||||||
_foamSource $WM_PROJECT_DIR/etc/aliases.sh
|
_foamSource $WM_PROJECT_DIR/etc/config/aliases.sh
|
||||||
|
|
||||||
|
|
||||||
# Source user setup files for optional packages
|
# Source user setup files for optional packages
|
||||||
|
|||||||
51
etc/config/README
Normal file
51
etc/config/README
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
The main OpenFOAM settings are located in the parent etc/ directory
|
||||||
|
|
||||||
|
* bashrc, cshrc
|
||||||
|
entry point for sourcing
|
||||||
|
|
||||||
|
* settings.csh, settings.sh
|
||||||
|
core settings
|
||||||
|
|
||||||
|
* prefs.csh, prefs.sh
|
||||||
|
these files are untracked and can be used for some site-defined
|
||||||
|
settings
|
||||||
|
|
||||||
|
|
||||||
|
The etc/config/ directory contains various configuration files in
|
||||||
|
sh/csh variants:
|
||||||
|
|
||||||
|
* aliases.csh, aliases.sh
|
||||||
|
aliases for interactive shells
|
||||||
|
|
||||||
|
* unset.csh, unset.sh
|
||||||
|
sourced to clear as many OpenFOAM environment settings as possible
|
||||||
|
|
||||||
|
|
||||||
|
* ensight.csh, ensight.sh
|
||||||
|
application settings for EnSight
|
||||||
|
|
||||||
|
* paraview.csh, paraview.sh
|
||||||
|
application settings for ParaView
|
||||||
|
|
||||||
|
* scotch.sh
|
||||||
|
application settings for compiling against scotch
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
The config/example directory contains various example configuration files
|
||||||
|
in sh/csh variants
|
||||||
|
|
||||||
|
* compiler.csh, compiler.sh
|
||||||
|
an example of fine tuning ThirdParty compiler settings for OpenFOAM
|
||||||
|
|
||||||
|
* openmpi.csh, openmpi.sh
|
||||||
|
an example of fine tuning openmpi settings for OpenFOAM
|
||||||
|
|
||||||
|
* paraview.csh, paraview.sh
|
||||||
|
an example of chaining to the standard config/paraview.sh with a
|
||||||
|
different ParaView_VERSION
|
||||||
|
|
||||||
|
* prefs.csh, prefs.sh
|
||||||
|
an example of supplying alternative site-defined settings
|
||||||
|
|
||||||
|
---
|
||||||
@ -22,7 +22,7 @@
|
|||||||
# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
# File
|
# File
|
||||||
# etc/aliases.csh
|
# etc/config/aliases.csh
|
||||||
#
|
#
|
||||||
# Description
|
# Description
|
||||||
# Aliases for working with OpenFOAM
|
# Aliases for working with OpenFOAM
|
||||||
@ -39,7 +39,7 @@ alias wmSP 'wmSET WM_PRECISION_OPTION=SP'
|
|||||||
alias wmDP 'wmSET WM_PRECISION_OPTION=DP'
|
alias wmDP 'wmSET WM_PRECISION_OPTION=DP'
|
||||||
|
|
||||||
# clear env
|
# clear env
|
||||||
alias wmUNSET='source $WM_PROJECT_DIR/etc/unset.csh'
|
alias wmUNSET='source $WM_PROJECT_DIR/etc/config/unset.csh'
|
||||||
|
|
||||||
# Toggle wmakeScheduler on/off
|
# Toggle wmakeScheduler on/off
|
||||||
# - also need to set WM_HOSTS
|
# - also need to set WM_HOSTS
|
||||||
@ -22,7 +22,7 @@
|
|||||||
# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
# File
|
# File
|
||||||
# etc/aliases.sh
|
# etc/config/aliases.sh
|
||||||
#
|
#
|
||||||
# Description
|
# Description
|
||||||
# Aliases for working with OpenFOAM
|
# Aliases for working with OpenFOAM
|
||||||
@ -39,7 +39,7 @@ alias wmSP='wmSET WM_PRECISION_OPTION=SP'
|
|||||||
alias wmDP='wmSET WM_PRECISION_OPTION=DP'
|
alias wmDP='wmSET WM_PRECISION_OPTION=DP'
|
||||||
|
|
||||||
# clear env
|
# clear env
|
||||||
alias wmUNSET='. $WM_PROJECT_DIR/etc/unset.sh'
|
alias wmUNSET='. $WM_PROJECT_DIR/etc/config/unset.sh'
|
||||||
|
|
||||||
# Toggle wmakeScheduler on/off
|
# Toggle wmakeScheduler on/off
|
||||||
# - also need to set WM_HOSTS
|
# - also need to set WM_HOSTS
|
||||||
@ -2,7 +2,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
|
# \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
|
# \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
# File
|
# File
|
||||||
# etc/prefs.csh
|
# config/example/prefs.csh
|
||||||
#
|
#
|
||||||
# Description
|
# Description
|
||||||
# Preset variables for the OpenFOAM configuration - C-Shell shell syntax.
|
# Preset variables for the OpenFOAM configuration - C-Shell shell syntax.
|
||||||
@ -22,7 +22,7 @@
|
|||||||
# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
# File
|
# File
|
||||||
# etc/prefs.sh
|
# config/example/prefs.sh
|
||||||
#
|
#
|
||||||
# Description
|
# Description
|
||||||
# Preset variables for the OpenFOAM configuration - POSIX shell syntax.
|
# Preset variables for the OpenFOAM configuration - POSIX shell syntax.
|
||||||
@ -22,7 +22,7 @@
|
|||||||
# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
# File
|
# File
|
||||||
# etc/unset.csh
|
# etc/config/unset.csh
|
||||||
#
|
#
|
||||||
# Description
|
# Description
|
||||||
# Clear as many OpenFOAM environment settings as possible
|
# Clear as many OpenFOAM environment settings as possible
|
||||||
@ -22,7 +22,7 @@
|
|||||||
# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
# File
|
# File
|
||||||
# etc/unset.sh
|
# etc/config/unset.sh
|
||||||
#
|
#
|
||||||
# Description
|
# Description
|
||||||
# Clear as many OpenFOAM environment settings as possible
|
# Clear as many OpenFOAM environment settings as possible
|
||||||
@ -138,7 +138,7 @@ alias _foamSource 'if ($?FOAM_VERBOSE && $?prompt) echo "Sourcing: \!*"; if (\!*
|
|||||||
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile prefs.csh`
|
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile prefs.csh`
|
||||||
|
|
||||||
# Evaluate command-line parameters and record settings for later
|
# Evaluate command-line parameters and record settings for later
|
||||||
# these can be used to set/unset values, or specify prefs files
|
# these can be used to set/unset values, or specify alternative pref files
|
||||||
setenv FOAM_SETTINGS "${*}"
|
setenv FOAM_SETTINGS "${*}"
|
||||||
while ( $#argv > 0 )
|
while ( $#argv > 0 )
|
||||||
switch ($argv[1])
|
switch ($argv[1])
|
||||||
@ -195,7 +195,7 @@ if ( $status == 0 ) setenv MANPATH $cleaned
|
|||||||
# Source project setup files
|
# Source project setup files
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
_foamSource $WM_PROJECT_DIR/etc/settings.csh
|
_foamSource $WM_PROJECT_DIR/etc/settings.csh
|
||||||
_foamSource $WM_PROJECT_DIR/etc/aliases.csh
|
_foamSource $WM_PROJECT_DIR/etc/config/aliases.csh
|
||||||
|
|
||||||
# Source user setup files for optional packages
|
# Source user setup files for optional packages
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|||||||
Reference in New Issue
Block a user