Skip to content
Snippets Groups Projects
Commit bdf556e6 authored by Henry Weller's avatar Henry Weller
Browse files

Building foamyHexMesh is now optional defaulting to not build

Set the environment variable "FOAMY_HEX_MESH" to build foamyHexMesh,
e.g. in ~/.OpenFOAM/dev/prefs.sh

FOAMY_HEX_MESH=yes
parent 32762aa1
Branches
Tags
No related merge requests found
......@@ -178,7 +178,11 @@ _foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config.sh/mpi`
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config.sh/paraview`
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config.sh/ensight`
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config.sh/gperftools`
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config.sh/CGAL`
if [ ! -z "$FOAMY_HEX_MESH" ]
then
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config.sh/CGAL`
fi
# Clean environment paths again. Only remove duplicates
......
......@@ -210,7 +210,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
# Clean environment paths again. Only remove duplicates
......@@ -233,6 +236,7 @@ if ( $?LD_PRELOAD ) then
if ( $status == 0 ) setenv LD_PRELOAD $cleaned
endif
# cleanup environment:
# ~~~~~~~~~~~~~~~~~~~~
unset cleaned foamClean foamInstall foamOldDirs
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment