mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
CONFIG: list Clang37 as well for ThirdParty clang
- for Darwin, mention that clang is the only compiler configured - adjust comments
This commit is contained in:
48
etc/bashrc
48
etc/bashrc
@ -3,7 +3,7 @@
|
||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
# \\ / O peration |
|
||||
# \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
# \\/ M anipulation | Copyright (C) 2016-2017 OpenCFD Ltd.
|
||||
# \\/ M anipulation | Copyright (C) 2016-2018 OpenCFD Ltd.
|
||||
#------------------------------------------------------------------------------
|
||||
# License
|
||||
# This file is part of OpenFOAM, licensed under GNU General Public License
|
||||
@ -13,23 +13,21 @@
|
||||
# etc/bashrc
|
||||
#
|
||||
# Description
|
||||
# Set OpenFOAM environment for POSIX shell (eg, bash,dash,zsh,...)
|
||||
# Source manually or from the ~/.profile or ~/.bashrc files.
|
||||
# The OpenFOAM environment for POSIX shell (eg, bash,dash,zsh,...).
|
||||
# Source manually or from the ~/.bashrc or ~/.profile files.
|
||||
#
|
||||
# Note
|
||||
# Many environment variables can be overridden using a <prefs.sh> file
|
||||
# from one of these locations:
|
||||
# * user-specific:
|
||||
# * ~/.OpenFOAM/$WM_PROJECT_VERSION
|
||||
# * ~/.OpenFOAM
|
||||
# * group-specific:
|
||||
# * $WM_PROJECT_SITE/site/$WM_PROJECT_VERSION
|
||||
# * $WM_PROJECT_SITE/site
|
||||
# * general:
|
||||
# * $WM_PROJECT_DIR/etc
|
||||
# Many settings can be overridden using a <prefs.sh> file:
|
||||
#
|
||||
# Any changes made to this bashrc file may be lost with the next upgrade.
|
||||
# - Base values (eg, from system admin):
|
||||
# - $WM_PROJECT_DIR/etc/prefs.sh
|
||||
#
|
||||
# - User or group values (first file found):
|
||||
# - ~/.OpenFOAM/$WM_PROJECT_VERSION/prefs.sh
|
||||
# - ~/.OpenFOAM/prefs.sh
|
||||
# - $WM_PROJECT_SITE/site/$WM_PROJECT_VERSION/prefs.sh
|
||||
# - $WM_PROJECT_SITE/site/prefs.sh
|
||||
#
|
||||
# Note: Changes made to this bashrc file may be lost with the next upgrade.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
export WM_PROJECT=OpenFOAM
|
||||
@ -52,8 +50,8 @@ FOAM_INST_DIR=$HOME/$WM_PROJECT
|
||||
export FOAM_INST_DIR
|
||||
unset rc
|
||||
|
||||
# Default environment variables.
|
||||
# Can override with a <prefs.sh> file instead of editing below.
|
||||
# Configuration environment variables.
|
||||
# Should override via <prefs.sh> file instead of editing this file.
|
||||
|
||||
# [WM_COMPILER_TYPE] - Compiler location:
|
||||
# = system | ThirdParty
|
||||
@ -61,7 +59,7 @@ export WM_COMPILER_TYPE=system
|
||||
|
||||
# [WM_COMPILER] - Compiler:
|
||||
# = Gcc | Gcc4[8-9] | Gcc5[1-5] | Gcc6[1-4] | Gcc7[1-3] | Gcc8[1] | GccKNL |
|
||||
# Clang | Clang3[8-9] | Clang[4-6]0 | Icc | IccKNL | Cray | Arm
|
||||
# Clang | Clang3[7-9] | Clang[4-6]0 | Icc | IccKNL | Cray | Arm
|
||||
export WM_COMPILER=Gcc
|
||||
|
||||
# [WM_ARCH_OPTION] - Memory addressing:
|
||||
@ -88,12 +86,15 @@ export WM_COMPILE_OPTION=Opt
|
||||
export WM_MPLIB=SYSTEMOPENMPI
|
||||
|
||||
|
||||
# [FOAM_SIGFPE] - Trapping of floating-point exceptions.
|
||||
#------------------------------------------------------------------------------
|
||||
# (legacy / advanced)
|
||||
#
|
||||
# [FOAM_SIGFPE] - Trap floating-point exceptions.
|
||||
# - overrides the 'trapFpe' controlDict entry
|
||||
# = true | false
|
||||
#export FOAM_SIGFPE=true
|
||||
|
||||
# [FOAM_SETNAN] - Memory initialisation as NaN
|
||||
# [FOAM_SETNAN] - Initialize memory with NaN
|
||||
# - overrides the 'setNaN' controlDict entry
|
||||
# = true | false
|
||||
#export FOAM_SETNAN=false
|
||||
@ -129,10 +130,9 @@ export WM_PROJECT_USER_DIR=$HOME/$WM_PROJECT/$USER-$WM_PROJECT_VERSION
|
||||
# Load shell functions
|
||||
. $WM_PROJECT_DIR/etc/config.sh/functions
|
||||
|
||||
# Override definitions via prefs, with 'other' first so the sys-admin
|
||||
# can provide base values independent of WM_PROJECT_SITE
|
||||
_foamEtc -mode=o prefs.sh
|
||||
_foamEtc -mode=ug prefs.sh
|
||||
# Overrides via <prefs.sh>
|
||||
_foamEtc -mode=o prefs.sh # 1) other (system) values
|
||||
_foamEtc -mode=ug prefs.sh # 2) user or group values
|
||||
|
||||
# Evaluate command-line parameters and record settings for later.
|
||||
# These can be used to set/unset values, specify additional files etc.
|
||||
|
||||
Reference in New Issue
Block a user