Scripts update: darwin
This commit is contained in:
parent
8c77ec3a2f
commit
a270d8d01e
1 changed files with 13 additions and 13 deletions
|
@ -47,10 +47,10 @@ _foamAddLib()
|
||||||
while [ $# -ge 1 ]
|
while [ $# -ge 1 ]
|
||||||
do
|
do
|
||||||
export LD_LIBRARY_PATH=$1:$LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH=$1:$LD_LIBRARY_PATH
|
||||||
if [ "$WM_ARCH_BASE" == "darwin" ]
|
if [ "$WM_ARCH_BASE" = "darwin" ]
|
||||||
then
|
then
|
||||||
export DYLD_LIBRARY_PATH=$1:$DYLD_LIBRARY_PATH
|
export DYLD_LIBRARY_PATH=$1:$DYLD_LIBRARY_PATH
|
||||||
fi
|
fi
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -70,7 +70,7 @@ _foamSource()
|
||||||
}
|
}
|
||||||
|
|
||||||
# location of the jobControl directory
|
# location of the jobControl directory
|
||||||
export FOAM_JOB_DIR=$WM_PROJECT_INST_DIR/jobControl
|
export FOAM_JOB_DIR=$HOME/$WM_PROJECT/jobControl
|
||||||
|
|
||||||
# wmake configuration
|
# wmake configuration
|
||||||
export WM_DIR=$WM_PROJECT_DIR/wmake
|
export WM_DIR=$WM_PROJECT_DIR/wmake
|
||||||
|
@ -85,18 +85,18 @@ export WM_DECOMP_LIBS="-lfaceDecompFiniteElement -lfaceDecompositionMotionSolver
|
||||||
|
|
||||||
# base configuration
|
# base configuration
|
||||||
export FOAM_APP=$WM_PROJECT_DIR/applications
|
export FOAM_APP=$WM_PROJECT_DIR/applications
|
||||||
export FOAM_APPBIN=$WM_PROJECT_DIR/applications/bin/$WM_OPTIONS
|
export FOAM_APPBIN=$WM_PROJECT_DIR/applications/bin
|
||||||
export FOAM_LIB=$WM_PROJECT_DIR/lib
|
export FOAM_LIB=$WM_PROJECT_DIR/lib
|
||||||
export FOAM_LIBBIN=$WM_PROJECT_DIR/lib/$WM_OPTIONS
|
export FOAM_LIBBIN=$WM_PROJECT_DIR/lib
|
||||||
export FOAM_SRC=$WM_PROJECT_DIR/src
|
export FOAM_SRC=$WM_PROJECT_DIR/src
|
||||||
|
|
||||||
# shared site configuration - similar naming convention as ~OpenFOAM expansion
|
# shared site configuration - similar naming convention as ~OpenFOAM expansion
|
||||||
export FOAM_SITE_APPBIN=$WM_PROJECT_INST_DIR/site/$WM_PROJECT_VERSION/bin/$WM_OPTIONS
|
export FOAM_SITE_APPBIN=$WM_PROJECT_INST_DIR/site/$WM_PROJECT_VERSION/bin
|
||||||
export FOAM_SITE_LIBBIN=$WM_PROJECT_INST_DIR/site/$WM_PROJECT_VERSION/lib/$WM_OPTIONS
|
export FOAM_SITE_LIBBIN=$WM_PROJECT_INST_DIR/site/$WM_PROJECT_VERSION/lib
|
||||||
|
|
||||||
# user configuration
|
# user configuration
|
||||||
export FOAM_USER_APPBIN=$WM_PROJECT_USER_DIR/applications/bin/$WM_OPTIONS
|
export FOAM_USER_APPBIN=$WM_PROJECT_USER_DIR/applications/bin
|
||||||
export FOAM_USER_LIBBIN=$WM_PROJECT_USER_DIR/lib/$WM_OPTIONS
|
export FOAM_USER_LIBBIN=$WM_PROJECT_USER_DIR/lib
|
||||||
|
|
||||||
# convenience
|
# convenience
|
||||||
export FOAM_TUTORIALS=$WM_PROJECT_DIR/tutorials
|
export FOAM_TUTORIALS=$WM_PROJECT_DIR/tutorials
|
||||||
|
@ -273,8 +273,8 @@ SYSTEMOPENMPI)
|
||||||
# system openmpi installation.
|
# system openmpi installation.
|
||||||
|
|
||||||
# Set compilation flags here instead of in wmake/rules/../mplibSYSTEMOPENMPI
|
# Set compilation flags here instead of in wmake/rules/../mplibSYSTEMOPENMPI
|
||||||
export PINC=$OPENMPI_COMPILE_FLAGS
|
export PINC="${OPENMPI_COMPILE_FLAGS}"
|
||||||
export PLIBS=$OPENMPI_LINK_FLAGS
|
export PLIBS="${OPENMPI_LINK_FLAGS}"
|
||||||
|
|
||||||
# No longer needed, but we keep this as a reference, just in case...
|
# No longer needed, but we keep this as a reference, just in case...
|
||||||
#libDir=`echo "$PLIBS" | sed -e 's/.*-L\([^ ]*\).*/\1/'`
|
#libDir=`echo "$PLIBS" | sed -e 's/.*-L\([^ ]*\).*/\1/'`
|
||||||
|
|
Reference in a new issue