mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev
This commit is contained in:
@ -59,7 +59,8 @@
|
|||||||
|
|
||||||
rho = thermo->rho();
|
rho = thermo->rho();
|
||||||
rho.relax();
|
rho.relax();
|
||||||
Info<< "rho max/min : " << max(rho).value() << " " << min(rho).value() << endl;
|
Info<< "rho max/min : " << max(rho).value() << " " << min(rho).value()
|
||||||
|
<< endl;
|
||||||
|
|
||||||
pd == p - (rho*gh + pRef);
|
pd == p - (rho*gh + pRef);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
EXE_INC = \
|
EXE_INC = \
|
||||||
/* -g -DFULLDEBUG -O0 */ \
|
/* -g -DFULLDEBUG -O0 */ \
|
||||||
-I$(LIB_SRC)/decompositionAgglomeration/decompositionMethods/lnInclude \
|
-I$(LIB_SRC)/decompositionMethods/decompositionMethods/lnInclude \
|
||||||
-I$(LIB_SRC)/autoMesh/lnInclude \
|
-I$(LIB_SRC)/autoMesh/lnInclude \
|
||||||
-I$(LIB_SRC)/meshTools/lnInclude \
|
-I$(LIB_SRC)/meshTools/lnInclude \
|
||||||
-I$(LIB_SRC)/triSurface/lnInclude \
|
-I$(LIB_SRC)/triSurface/lnInclude \
|
||||||
@ -9,7 +9,6 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/finiteVolume/lnInclude
|
-I$(LIB_SRC)/finiteVolume/lnInclude
|
||||||
|
|
||||||
EXE_LIBS = \
|
EXE_LIBS = \
|
||||||
-L$(FOAM_MPI_LIBBIN) -lparMetisDecompositionMethod \
|
|
||||||
-lfiniteVolume \
|
-lfiniteVolume \
|
||||||
-ldecompositionMethods \
|
-ldecompositionMethods \
|
||||||
-lmeshTools \
|
-lmeshTools \
|
||||||
|
|||||||
@ -2,7 +2,7 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/meshTools/lnInclude \
|
-I$(LIB_SRC)/meshTools/lnInclude \
|
||||||
-I$(LIB_SRC)/dynamicMesh/lnInclude \
|
-I$(LIB_SRC)/dynamicMesh/lnInclude \
|
||||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||||
-I$(LIB_SRC)/decompositionAgglomeration/decompositionMethods/lnInclude
|
-I$(LIB_SRC)/decompositionMethods/decompositionMethods/lnInclude
|
||||||
|
|
||||||
EXE_LIBS = \
|
EXE_LIBS = \
|
||||||
-lmeshTools \
|
-lmeshTools \
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
EXE_INC = \
|
EXE_INC = \
|
||||||
-I$(LIB_SRC)/decompositionAgglomeration/decompositionMethods/lnInclude \
|
-I$(LIB_SRC)/decompositionMethods/decompositionMethods/lnInclude \
|
||||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||||
-I$(LIB_SRC)/lagrangian/basic/lnInclude \
|
-I$(LIB_SRC)/lagrangian/basic/lnInclude \
|
||||||
-I$(LIB_SRC)/meshTools/lnInclude
|
-I$(LIB_SRC)/meshTools/lnInclude
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
EXE_INC = \
|
EXE_INC = \
|
||||||
-I$(LIB_SRC)/decompositionAgglomeration/decompositionMethods/lnInclude \
|
-I$(LIB_SRC)/decompositionMethods/decompositionMethods/lnInclude \
|
||||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||||
-I$(LIB_SRC)/meshTools/lnInclude \
|
-I$(LIB_SRC)/meshTools/lnInclude \
|
||||||
-I$(LIB_SRC)/dynamicMesh/lnInclude
|
-I$(LIB_SRC)/dynamicMesh/lnInclude
|
||||||
|
|||||||
@ -223,6 +223,7 @@ void mapLagrangian(const meshToMesh& meshToMeshInterp)
|
|||||||
{
|
{
|
||||||
unmappedSource.erase(sourceParticleI);
|
unmappedSource.erase(sourceParticleI);
|
||||||
addParticles.append(sourceParticleI);
|
addParticles.append(sourceParticleI);
|
||||||
|
iter().cell()=targetCell;
|
||||||
targetParcels.addParticle
|
targetParcels.addParticle
|
||||||
(
|
(
|
||||||
sourceParcels.remove(&iter())
|
sourceParcels.remove(&iter())
|
||||||
|
|||||||
@ -27,12 +27,12 @@
|
|||||||
# foamCleanPath
|
# foamCleanPath
|
||||||
#
|
#
|
||||||
# Description
|
# Description
|
||||||
# Usage: foamCleanPath path [wildcard] .. [wildcard]
|
# Usage: foamCleanPath [-strip] path [wildcard] .. [wildcard]
|
||||||
#
|
#
|
||||||
# Prints its argument (which should be a ':' separated path)
|
# Prints its argument (which should be a ':' separated path)
|
||||||
# without all
|
# without all
|
||||||
# - duplicate elements
|
# - duplicate elements
|
||||||
# - non-accessible directories
|
# - (if '-strip') non-accessible directories
|
||||||
# - elements whose start matches a wildcard
|
# - elements whose start matches a wildcard
|
||||||
#
|
#
|
||||||
# Note:
|
# Note:
|
||||||
@ -42,16 +42,25 @@
|
|||||||
if [ "$#" -lt 1 -o "$1" = "-h" -o "$1" = "-help" ]
|
if [ "$#" -lt 1 -o "$1" = "-h" -o "$1" = "-help" ]
|
||||||
then
|
then
|
||||||
cat <<USAGE 1>&2
|
cat <<USAGE 1>&2
|
||||||
Usage: ${0##*/} path [wildcard] .. [wildcard]
|
Usage: ${0##*/} [-strip] path [wildcard] .. [wildcard]
|
||||||
|
|
||||||
Prints its argument (which should be a ':' separated list) cleansed from
|
Prints its argument (which should be a ':' separated list) cleansed from
|
||||||
- duplicate elements
|
- duplicate elements
|
||||||
- non-accessible directories
|
|
||||||
- elements whose start matches one of the wildcard(s)
|
- elements whose start matches one of the wildcard(s)
|
||||||
|
- (if '-strip') non-accessible directories
|
||||||
USAGE
|
USAGE
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
strip=''
|
||||||
|
if [ "$1" = "-strip" ]
|
||||||
|
then
|
||||||
|
strip=true
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
dirList="$1"
|
dirList="$1"
|
||||||
shift
|
shift
|
||||||
|
|
||||||
@ -94,6 +103,10 @@ do
|
|||||||
then
|
then
|
||||||
dirList="$dirList $dir"
|
dirList="$dirList $dir"
|
||||||
fi
|
fi
|
||||||
|
elif [ "$strip" != "true" ]
|
||||||
|
then
|
||||||
|
# Print non-existing directories if not in 'strip' mode.
|
||||||
|
dirList="$dirList $dir"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
19
etc/bashrc
19
etc/bashrc
@ -77,6 +77,12 @@ export WM_PROJECT_USER_DIR=$HOME/$WM_PROJECT/$USER-$WM_PROJECT_VERSION
|
|||||||
export WM_THIRD_PARTY_DIR=$WM_PROJECT_INST_DIR/ThirdParty
|
export WM_THIRD_PARTY_DIR=$WM_PROJECT_INST_DIR/ThirdParty
|
||||||
|
|
||||||
|
|
||||||
|
# Operating System/Platform
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
# WM_OS = Unix | ????
|
||||||
|
: ${WM_OS:=Unix}; export WM_OS
|
||||||
|
|
||||||
|
|
||||||
# Compiler: set to Gcc, Gcc43 or Icc (for Intel's icc)
|
# Compiler: set to Gcc, Gcc43 or Icc (for Intel's icc)
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
: ${WM_COMPILER:=Gcc}; export WM_COMPILER
|
: ${WM_COMPILER:=Gcc}; export WM_COMPILER
|
||||||
@ -146,10 +152,12 @@ Linux)
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
|
||||||
ia64)
|
ia64)
|
||||||
WM_ARCH=linuxIA64
|
WM_ARCH=linuxIA64
|
||||||
export WM_COMPILER=I64
|
export WM_COMPILER=I64
|
||||||
;;
|
;;
|
||||||
|
|
||||||
mips64)
|
mips64)
|
||||||
WM_ARCH=SiCortex64
|
WM_ARCH=SiCortex64
|
||||||
export WM_COMPILER_LIB_ARCH=64
|
export WM_COMPILER_LIB_ARCH=64
|
||||||
@ -160,6 +168,17 @@ Linux)
|
|||||||
export WM_LDFLAGS='-mabi=64 -G0'
|
export WM_LDFLAGS='-mabi=64 -G0'
|
||||||
export WM_MPLIB=MPI
|
export WM_MPLIB=MPI
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
ppc64)
|
||||||
|
WM_ARCH=linuxPPC64
|
||||||
|
export WM_COMPILER_LIB_ARCH=64
|
||||||
|
export WM_CC='gcc'
|
||||||
|
export WM_CXX='g++'
|
||||||
|
export WM_CFLAGS='-m64 -fPIC'
|
||||||
|
export WM_CXXFLAGS='-m64 -fPIC'
|
||||||
|
export WM_LDFLAGS='-m64'
|
||||||
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo Unknown processor type `uname -m` for Linux
|
echo Unknown processor type `uname -m` for Linux
|
||||||
;;
|
;;
|
||||||
|
|||||||
24
etc/cshrc
24
etc/cshrc
@ -71,6 +71,12 @@ setenv WM_PROJECT_USER_DIR $HOME/$WM_PROJECT/$LOGNAME-$WM_PROJECT_VERSION
|
|||||||
setenv WM_THIRD_PARTY_DIR $WM_PROJECT_INST_DIR/ThirdParty
|
setenv WM_THIRD_PARTY_DIR $WM_PROJECT_INST_DIR/ThirdParty
|
||||||
|
|
||||||
|
|
||||||
|
# Operating System/Platform
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
# WM_OS = Unix | ????
|
||||||
|
if ( ! $?WM_OS ) setenv WM_OS Unix
|
||||||
|
|
||||||
|
|
||||||
# Compiler: set to Gcc, Gcc43 or Icc (for Intel's icc)
|
# Compiler: set to Gcc, Gcc43 or Icc (for Intel's icc)
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
if ( ! $?WM_COMPILER ) setenv WM_COMPILER Gcc
|
if ( ! $?WM_COMPILER ) setenv WM_COMPILER Gcc
|
||||||
@ -114,6 +120,7 @@ case Linux:
|
|||||||
switch (`uname -m`)
|
switch (`uname -m`)
|
||||||
case i686:
|
case i686:
|
||||||
breaksw
|
breaksw
|
||||||
|
|
||||||
case x86_64:
|
case x86_64:
|
||||||
switch ($WM_ARCH_OPTION)
|
switch ($WM_ARCH_OPTION)
|
||||||
case 32:
|
case 32:
|
||||||
@ -125,6 +132,7 @@ case Linux:
|
|||||||
setenv WM_CXXFLAGS '-m32 -fPIC'
|
setenv WM_CXXFLAGS '-m32 -fPIC'
|
||||||
setenv WM_LDFLAGS '-m32'
|
setenv WM_LDFLAGS '-m32'
|
||||||
breaksw
|
breaksw
|
||||||
|
|
||||||
case 64:
|
case 64:
|
||||||
setenv WM_ARCH linux64
|
setenv WM_ARCH linux64
|
||||||
setenv WM_COMPILER_LIB_ARCH 64
|
setenv WM_COMPILER_LIB_ARCH 64
|
||||||
@ -134,15 +142,19 @@ case Linux:
|
|||||||
setenv WM_CXXFLAGS '-m64 -fPIC'
|
setenv WM_CXXFLAGS '-m64 -fPIC'
|
||||||
setenv WM_LDFLAGS '-m64'
|
setenv WM_LDFLAGS '-m64'
|
||||||
breaksw
|
breaksw
|
||||||
|
|
||||||
default:
|
default:
|
||||||
echo Unknown WM_ARCH_OPTION $WM_ARCH_OPTION, should be 32 or 64
|
echo Unknown WM_ARCH_OPTION $WM_ARCH_OPTION, should be 32 or 64
|
||||||
breaksw
|
breaksw
|
||||||
|
|
||||||
endsw
|
endsw
|
||||||
breaksw
|
breaksw
|
||||||
|
|
||||||
case ia64:
|
case ia64:
|
||||||
setenv WM_ARCH linuxIA64
|
setenv WM_ARCH linuxIA64
|
||||||
setenv WM_COMPILER I64
|
setenv WM_COMPILER I64
|
||||||
breaksw
|
breaksw
|
||||||
|
|
||||||
case mips64:
|
case mips64:
|
||||||
setenv WM_ARCH SiCortex64
|
setenv WM_ARCH SiCortex64
|
||||||
setenv WM_COMPILER_LIB_ARCH 64
|
setenv WM_COMPILER_LIB_ARCH 64
|
||||||
@ -153,9 +165,21 @@ case Linux:
|
|||||||
setenv WM_LDFLAGS '-mabi=64 -G0'
|
setenv WM_LDFLAGS '-mabi=64 -G0'
|
||||||
setenv WM_MPLIB MPI
|
setenv WM_MPLIB MPI
|
||||||
breaksw
|
breaksw
|
||||||
|
|
||||||
|
case ppc64:
|
||||||
|
setenv WM_ARCH linuxPPC64
|
||||||
|
setenv WM_COMPILER_LIB_ARCH 64
|
||||||
|
setenv WM_CC 'gcc'
|
||||||
|
setenv WM_CXX 'g++'
|
||||||
|
setenv WM_CFLAGS '-m64 -fPIC'
|
||||||
|
setenv WM_CXXFLAGS '-m64 -fPIC'
|
||||||
|
setenv WM_LDFLAGS '-m64'
|
||||||
|
breaksw
|
||||||
|
|
||||||
default:
|
default:
|
||||||
echo Unknown processor type `uname -m` for Linux
|
echo Unknown processor type `uname -m` for Linux
|
||||||
breaksw
|
breaksw
|
||||||
|
|
||||||
endsw
|
endsw
|
||||||
breaksw
|
breaksw
|
||||||
|
|
||||||
|
|||||||
@ -35,8 +35,6 @@
|
|||||||
alias _foamAddPath 'set path=(\!* $path)'
|
alias _foamAddPath 'set path=(\!* $path)'
|
||||||
# prefix to LD_LIBRARY_PATH
|
# prefix to LD_LIBRARY_PATH
|
||||||
alias _foamAddLib 'setenv LD_LIBRARY_PATH \!*\:${LD_LIBRARY_PATH}'
|
alias _foamAddLib 'setenv LD_LIBRARY_PATH \!*\:${LD_LIBRARY_PATH}'
|
||||||
# make directory if it doesn't already exist
|
|
||||||
alias _foamMkDir 'if ( ! -d \!* ) mkdir -p \!*'
|
|
||||||
|
|
||||||
# location of the jobControl directory
|
# location of the jobControl directory
|
||||||
setenv FOAM_JOB_DIR $WM_PROJECT_INST_DIR/jobControl
|
setenv FOAM_JOB_DIR $WM_PROJECT_INST_DIR/jobControl
|
||||||
@ -71,12 +69,6 @@ _foamAddPath $FOAM_USER_APPBIN
|
|||||||
_foamAddLib $FOAM_LIBBIN
|
_foamAddLib $FOAM_LIBBIN
|
||||||
_foamAddLib $FOAM_USER_LIBBIN
|
_foamAddLib $FOAM_USER_LIBBIN
|
||||||
|
|
||||||
# create these directories if necessary:
|
|
||||||
_foamMkDir $FOAM_LIBBIN
|
|
||||||
_foamMkDir $FOAM_APPBIN
|
|
||||||
_foamMkDir $FOAM_USER_LIBBIN
|
|
||||||
_foamMkDir $FOAM_USER_APPBIN
|
|
||||||
|
|
||||||
|
|
||||||
# Select compiler installation
|
# Select compiler installation
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
@ -130,9 +122,6 @@ case OPENMPI:
|
|||||||
|
|
||||||
_foamAddPath $MPI_ARCH_PATH/bin
|
_foamAddPath $MPI_ARCH_PATH/bin
|
||||||
_foamAddLib $MPI_ARCH_PATH/lib
|
_foamAddLib $MPI_ARCH_PATH/lib
|
||||||
# before compiling, these directories may not exist:
|
|
||||||
_foamMkDir $MPI_ARCH_PATH/bin
|
|
||||||
_foamMkDir $MPI_ARCH_PATH/lib
|
|
||||||
|
|
||||||
setenv FOAM_MPI_LIBBIN $FOAM_LIBBIN/$mpi_version
|
setenv FOAM_MPI_LIBBIN $FOAM_LIBBIN/$mpi_version
|
||||||
unset mpi_version
|
unset mpi_version
|
||||||
@ -147,9 +136,6 @@ case LAM:
|
|||||||
|
|
||||||
_foamAddPath $MPI_ARCH_PATH/bin
|
_foamAddPath $MPI_ARCH_PATH/bin
|
||||||
_foamAddLib $MPI_ARCH_PATH/lib
|
_foamAddLib $MPI_ARCH_PATH/lib
|
||||||
# before compiling, these directories may not exist:
|
|
||||||
_foamMkDir $MPI_ARCH_PATH/bin
|
|
||||||
_foamMkDir $MPI_ARCH_PATH/lib
|
|
||||||
|
|
||||||
setenv FOAM_MPI_LIBBIN $FOAM_LIBBIN/$mpi_version
|
setenv FOAM_MPI_LIBBIN $FOAM_LIBBIN/$mpi_version
|
||||||
unset mpi_version
|
unset mpi_version
|
||||||
@ -163,9 +149,6 @@ case MPICH:
|
|||||||
|
|
||||||
_foamAddPath $MPI_ARCH_PATH/bin
|
_foamAddPath $MPI_ARCH_PATH/bin
|
||||||
_foamAddLib $MPI_ARCH_PATH/lib
|
_foamAddLib $MPI_ARCH_PATH/lib
|
||||||
# before compiling, these directories may not exist:
|
|
||||||
_foamMkDir $MPI_ARCH_PATH/bin
|
|
||||||
_foamMkDir $MPI_ARCH_PATH/lib
|
|
||||||
|
|
||||||
setenv FOAM_MPI_LIBBIN $FOAM_LIBBIN/$mpi_version
|
setenv FOAM_MPI_LIBBIN $FOAM_LIBBIN/$mpi_version
|
||||||
unset mpi_version
|
unset mpi_version
|
||||||
@ -180,9 +163,6 @@ case MPICH-GM:
|
|||||||
_foamAddPath $MPI_ARCH_PATH/bin
|
_foamAddPath $MPI_ARCH_PATH/bin
|
||||||
_foamAddLib $MPI_ARCH_PATH/lib
|
_foamAddLib $MPI_ARCH_PATH/lib
|
||||||
_foamAddLib $GM_LIB_PATH
|
_foamAddLib $GM_LIB_PATH
|
||||||
# before compiling, these directories may not exist:
|
|
||||||
_foamMkDir $MPI_ARCH_PATH/bin
|
|
||||||
_foamMkDir $MPI_ARCH_PATH/lib
|
|
||||||
|
|
||||||
setenv FOAM_MPI_LIBBIN $FOAM_LIBBIN/mpich-gm
|
setenv FOAM_MPI_LIBBIN $FOAM_LIBBIN/mpich-gm
|
||||||
breaksw
|
breaksw
|
||||||
@ -246,8 +226,6 @@ default:
|
|||||||
endsw
|
endsw
|
||||||
|
|
||||||
_foamAddLib $FOAM_MPI_LIBBIN
|
_foamAddLib $FOAM_MPI_LIBBIN
|
||||||
# before compiling, this directory may not exist:
|
|
||||||
_foamMkDir $FOAM_MPI_LIBBIN
|
|
||||||
|
|
||||||
|
|
||||||
# Set the minimum MPI buffer size (used by all platforms except SGI MPI)
|
# Set the minimum MPI buffer size (used by all platforms except SGI MPI)
|
||||||
@ -281,7 +259,6 @@ endif
|
|||||||
# ~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~
|
||||||
unalias _foamAddPath
|
unalias _foamAddPath
|
||||||
unalias _foamAddLib
|
unalias _foamAddLib
|
||||||
unalias _foamMkDir
|
|
||||||
unset minBufferSize
|
unset minBufferSize
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
|
|||||||
@ -52,17 +52,6 @@ _foamAddLib()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# make directories if they don't already exist
|
|
||||||
_foamMkDir()
|
|
||||||
{
|
|
||||||
while [ $# -ge 1 ]
|
|
||||||
do
|
|
||||||
[ -d $1 ] || mkdir -p $1
|
|
||||||
shift
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# location of the jobControl directory
|
# location of the jobControl directory
|
||||||
export FOAM_JOB_DIR=$WM_PROJECT_INST_DIR/jobControl
|
export FOAM_JOB_DIR=$WM_PROJECT_INST_DIR/jobControl
|
||||||
|
|
||||||
@ -94,9 +83,6 @@ export PATH=$WM_DIR:$WM_PROJECT_DIR/bin:$PATH
|
|||||||
_foamAddPath $FOAM_APPBIN $FOAM_USER_APPBIN
|
_foamAddPath $FOAM_APPBIN $FOAM_USER_APPBIN
|
||||||
_foamAddLib $FOAM_LIBBIN $FOAM_USER_LIBBIN
|
_foamAddLib $FOAM_LIBBIN $FOAM_USER_LIBBIN
|
||||||
|
|
||||||
# create these directories if necessary:
|
|
||||||
_foamMkDir $FOAM_LIBBIN $FOAM_USER_LIBBIN $FOAM_APPBIN $FOAM_USER_APPBIN
|
|
||||||
|
|
||||||
|
|
||||||
# Compiler settings
|
# Compiler settings
|
||||||
# ~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~
|
||||||
@ -160,8 +146,6 @@ OPENMPI)
|
|||||||
|
|
||||||
_foamAddPath $MPI_ARCH_PATH/bin
|
_foamAddPath $MPI_ARCH_PATH/bin
|
||||||
_foamAddLib $MPI_ARCH_PATH/lib
|
_foamAddLib $MPI_ARCH_PATH/lib
|
||||||
# before compiling, these directories may not exist:
|
|
||||||
_foamMkDir $MPI_ARCH_PATH/bin $MPI_ARCH_PATH/lib
|
|
||||||
|
|
||||||
export FOAM_MPI_LIBBIN=$FOAM_LIBBIN/$mpi_version
|
export FOAM_MPI_LIBBIN=$FOAM_LIBBIN/$mpi_version
|
||||||
unset mpi_version
|
unset mpi_version
|
||||||
@ -176,8 +160,6 @@ LAM)
|
|||||||
|
|
||||||
_foamAddPath $MPI_ARCH_PATH/bin
|
_foamAddPath $MPI_ARCH_PATH/bin
|
||||||
_foamAddLib $MPI_ARCH_PATH/lib
|
_foamAddLib $MPI_ARCH_PATH/lib
|
||||||
# before compiling, these directories may not exist:
|
|
||||||
_foamMkDir $MPI_ARCH_PATH/bin $MPI_ARCH_PATH/lib
|
|
||||||
|
|
||||||
export FOAM_MPI_LIBBIN=$FOAM_LIBBIN/$mpi_version
|
export FOAM_MPI_LIBBIN=$FOAM_LIBBIN/$mpi_version
|
||||||
unset mpi_version
|
unset mpi_version
|
||||||
@ -191,8 +173,6 @@ MPICH)
|
|||||||
|
|
||||||
_foamAddPath $MPI_ARCH_PATH/bin
|
_foamAddPath $MPI_ARCH_PATH/bin
|
||||||
_foamAddLib $MPI_ARCH_PATH/lib
|
_foamAddLib $MPI_ARCH_PATH/lib
|
||||||
# before compiling, these directories may not exist:
|
|
||||||
_foamMkDir $MPI_ARCH_PATH/bin $MPI_ARCH_PATH/lib
|
|
||||||
|
|
||||||
export FOAM_MPI_LIBBIN=$FOAM_LIBBIN/$mpi_version
|
export FOAM_MPI_LIBBIN=$FOAM_LIBBIN/$mpi_version
|
||||||
unset mpi_version
|
unset mpi_version
|
||||||
@ -207,8 +187,6 @@ MPICH-GM)
|
|||||||
_foamAddPath $MPI_ARCH_PATH/bin
|
_foamAddPath $MPI_ARCH_PATH/bin
|
||||||
_foamAddLib $MPI_ARCH_PATH/lib
|
_foamAddLib $MPI_ARCH_PATH/lib
|
||||||
_foamAddLib $GM_LIB_PATH
|
_foamAddLib $GM_LIB_PATH
|
||||||
# before compiling, these directories may not exist:
|
|
||||||
_foamMkDir $MPI_ARCH_PATH/bin $MPI_ARCH_PATH/lib
|
|
||||||
|
|
||||||
export FOAM_MPI_LIBBIN=$FOAM_LIBBIN/mpich-gm
|
export FOAM_MPI_LIBBIN=$FOAM_LIBBIN/mpich-gm
|
||||||
;;
|
;;
|
||||||
@ -274,8 +252,6 @@ QSMPI)
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
_foamAddLib $FOAM_MPI_LIBBIN
|
_foamAddLib $FOAM_MPI_LIBBIN
|
||||||
# before compiling, this directory may not exist:
|
|
||||||
_foamMkDir $FOAM_MPI_LIBBIN
|
|
||||||
|
|
||||||
|
|
||||||
# Set the minimum MPI buffer size (used by all platforms except SGI MPI)
|
# Set the minimum MPI buffer size (used by all platforms except SGI MPI)
|
||||||
@ -304,6 +280,6 @@ export MPI_BUFFER_SIZE
|
|||||||
|
|
||||||
# cleanup environment:
|
# cleanup environment:
|
||||||
# ~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~
|
||||||
unset _foamAddPath _foamAddLib _foamMkDir minBufferSize
|
unset _foamAddPath _foamAddLib minBufferSize
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
|
|||||||
@ -18,7 +18,8 @@ wmake libso triSurface
|
|||||||
wmake libso edgeMesh
|
wmake libso edgeMesh
|
||||||
wmake libso surfMesh
|
wmake libso surfMesh
|
||||||
|
|
||||||
decompositionAgglomeration/Allwmake
|
# Decomposition methods needed by meshTools
|
||||||
|
decompositionMethods/Allwmake
|
||||||
|
|
||||||
wmake libso meshTools
|
wmake libso meshTools
|
||||||
wmake libso finiteVolume
|
wmake libso finiteVolume
|
||||||
@ -44,4 +45,6 @@ conversion/Allwmake
|
|||||||
wmake libso autoMesh
|
wmake libso autoMesh
|
||||||
wmake libso errorEstimation
|
wmake libso errorEstimation
|
||||||
|
|
||||||
|
fvAgglomerationMethods/Allwmake
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
EXE_INC = \
|
EXE_INC = \
|
||||||
-I$(LIB_SRC)/decompositionAgglomeration/decompositionMethods/lnInclude \
|
-I$(LIB_SRC)/decompositionMethods/decompositionMethods/lnInclude \
|
||||||
-I$(LIB_SRC)/dynamicMesh/lnInclude \
|
-I$(LIB_SRC)/dynamicMesh/lnInclude \
|
||||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||||
-I$(LIB_SRC)/lagrangian/basic/lnInclude \
|
-I$(LIB_SRC)/lagrangian/basic/lnInclude \
|
||||||
|
|||||||
@ -1212,6 +1212,17 @@ void Foam::meshRefinement::findCellZoneTopo
|
|||||||
// by changing cell zone every time we cross a surface.
|
// by changing cell zone every time we cross a surface.
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
|
// Synchronise regionToCellZone.
|
||||||
|
// Note:
|
||||||
|
// - region numbers are identical on all processors
|
||||||
|
// - keepRegion is identical ,,
|
||||||
|
// - cellZones are identical ,,
|
||||||
|
// This done at top of loop to account for geometric matching
|
||||||
|
// not being synchronised.
|
||||||
|
Pstream::listCombineGather(regionToCellZone, maxEqOp<label>());
|
||||||
|
Pstream::listCombineScatter(regionToCellZone);
|
||||||
|
|
||||||
|
|
||||||
bool changed = false;
|
bool changed = false;
|
||||||
|
|
||||||
// Internal faces
|
// Internal faces
|
||||||
@ -1292,14 +1303,6 @@ void Foam::meshRefinement::findCellZoneTopo
|
|||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Synchronise regionToCellZone.
|
|
||||||
// Note:
|
|
||||||
// - region numbers are identical on all processors
|
|
||||||
// - keepRegion is identical ,,
|
|
||||||
// - cellZones are identical ,,
|
|
||||||
Pstream::listCombineGather(regionToCellZone, maxEqOp<label>());
|
|
||||||
Pstream::listCombineScatter(regionToCellZone);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -9,6 +9,4 @@ then
|
|||||||
(WM_OPTIONS=${WM_OPTIONS}$WM_MPLIB; wmake libso parMetisDecomp)
|
(WM_OPTIONS=${WM_OPTIONS}$WM_MPLIB; wmake libso parMetisDecomp)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
wmake libso MGridGenGamgAgglomeration
|
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# ----------------------------------------------------------------- end-of-file
|
||||||
7
src/fvAgglomerationMethods/Allwmake
Executable file
7
src/fvAgglomerationMethods/Allwmake
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
|
set -x
|
||||||
|
|
||||||
|
wmake libso MGridGenGamgAgglomeration
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------- end-of-file
|
||||||
@ -329,6 +329,9 @@ public:
|
|||||||
//- Return current particle position
|
//- Return current particle position
|
||||||
inline vector& position();
|
inline vector& position();
|
||||||
|
|
||||||
|
//- Return current cell particle is in
|
||||||
|
inline label& cell();
|
||||||
|
|
||||||
//- Return current cell particle is in
|
//- Return current cell particle is in
|
||||||
inline label cell() const;
|
inline label cell() const;
|
||||||
|
|
||||||
|
|||||||
@ -303,6 +303,12 @@ inline label Particle<ParticleType>::cell() const
|
|||||||
return celli_;
|
return celli_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<class ParticleType>
|
||||||
|
inline label& Particle<ParticleType>::cell()
|
||||||
|
{
|
||||||
|
return celli_;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
template<class ParticleType>
|
template<class ParticleType>
|
||||||
inline label Particle<ParticleType>::face() const
|
inline label Particle<ParticleType>::face() const
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
EXE_INC = \
|
EXE_INC = \
|
||||||
-I$(LIB_SRC)/triSurface/lnInclude \
|
-I$(LIB_SRC)/triSurface/lnInclude \
|
||||||
-I$(LIB_SRC)/decompositionAgglomeration/decompositionMethods/lnInclude \
|
-I$(LIB_SRC)/decompositionMethods/decompositionMethods/lnInclude \
|
||||||
-I$(LIB_SRC)/lagrangian/basic/lnInclude
|
-I$(LIB_SRC)/lagrangian/basic/lnInclude
|
||||||
|
|
||||||
LIB_LIBS = \
|
LIB_LIBS = \
|
||||||
|
|||||||
@ -13,7 +13,7 @@ reactingMixture = $(mixtures)/reactingMixture
|
|||||||
$(chemistryReader)/chemistryReader.C
|
$(chemistryReader)/chemistryReader.C
|
||||||
$(foamChemistryReader)/foamChemistryReader.C
|
$(foamChemistryReader)/foamChemistryReader.C
|
||||||
$(chemkinReader)/chemkinReader.C
|
$(chemkinReader)/chemkinReader.C
|
||||||
$(chemkinReader)/chemkinLexer.C
|
$(chemkinReader)/chemkinLexer.L
|
||||||
|
|
||||||
$(combustionMixture)/combustionMixture.C
|
$(combustionMixture)/combustionMixture.C
|
||||||
$(reactingMixture)/reactingMixture.C
|
$(reactingMixture)/reactingMixture.C
|
||||||
|
|||||||
@ -30,6 +30,9 @@ Description
|
|||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#ifndef radiationConstants_H
|
||||||
|
#define radiationConstants_H
|
||||||
|
|
||||||
#include "dimensionedScalar.H"
|
#include "dimensionedScalar.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
@ -43,5 +46,8 @@ namespace radiation
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -265,10 +265,10 @@ bool Foam::radiation::fvDOM::read()
|
|||||||
{
|
{
|
||||||
if (radiationModel::read())
|
if (radiationModel::read())
|
||||||
{
|
{
|
||||||
// nothing to read
|
// Only reading solution parameters - not changing ray geometry
|
||||||
|
|
||||||
// coeffs_.lookup("nTheta") >> nTheta_;
|
coeffs_.readIfPresent("convergence", convergence_);
|
||||||
// coeffs_.lookup("nPhi") >> nPhi_;
|
coeffs_.readIfPresent("maxIter", maxIter_);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -128,7 +128,7 @@ void Foam::radiation::radiationModel::correct()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((time_.timeIndex() == 0) || (time_.timeIndex() % solverFreq_ == 0))
|
if (time_.timeIndex() % solverFreq_ == 0)
|
||||||
{
|
{
|
||||||
calculate();
|
calculate();
|
||||||
}
|
}
|
||||||
|
|||||||
3
wmake/rules/linuxPPC64Gcc/X
Normal file
3
wmake/rules/linuxPPC64Gcc/X
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
XFLAGS =
|
||||||
|
XINC = $(XFLAGS) -I/usr/X11R6/include
|
||||||
|
XLIBS = -L/usr/X11R6/lib64 -lXext -lX11
|
||||||
16
wmake/rules/linuxPPC64Gcc/c
Normal file
16
wmake/rules/linuxPPC64Gcc/c
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
.SUFFIXES: .c .h
|
||||||
|
|
||||||
|
cWARN = -Wall
|
||||||
|
|
||||||
|
cc = gcc -m64 -mcpu=power5+
|
||||||
|
|
||||||
|
include $(RULES)/c$(WM_COMPILE_OPTION)
|
||||||
|
|
||||||
|
cFLAGS = $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC
|
||||||
|
|
||||||
|
ctoo = $(WM_SCHEDULER) $(cc) $(cFLAGS) -c $$SOURCE -o $@
|
||||||
|
|
||||||
|
LINK_LIBS = $(cDBUG)
|
||||||
|
|
||||||
|
LINKLIBSO = $(cc) -shared
|
||||||
|
LINKEXE = $(cc) -Xlinker -z -Xlinker nodefs
|
||||||
21
wmake/rules/linuxPPC64Gcc/c++
Normal file
21
wmake/rules/linuxPPC64Gcc/c++
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
.SUFFIXES: .C .cxx .cc .cpp
|
||||||
|
|
||||||
|
c++WARN = -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast
|
||||||
|
|
||||||
|
CC = g++ -m64 -mcpu=power5+
|
||||||
|
|
||||||
|
include $(RULES)/c++$(WM_COMPILE_OPTION)
|
||||||
|
|
||||||
|
ptFLAGS = -DNoRepository -ftemplate-depth-40
|
||||||
|
|
||||||
|
c++FLAGS = $(GFLAGS) $(c++WARN) $(c++OPT) $(c++DBUG) $(ptFLAGS) $(LIB_HEADER_DIRS) -fPIC
|
||||||
|
|
||||||
|
Ctoo = $(WM_SCHEDULER) $(CC) $(c++FLAGS) -c $$SOURCE -o $@
|
||||||
|
cxxtoo = $(Ctoo)
|
||||||
|
cctoo = $(Ctoo)
|
||||||
|
cpptoo = $(Ctoo)
|
||||||
|
|
||||||
|
LINK_LIBS = $(c++DBUG)
|
||||||
|
|
||||||
|
LINKLIBSO = $(CC) $(c++FLAGS) -shared
|
||||||
|
LINKEXE = $(CC) $(c++FLAGS)
|
||||||
2
wmake/rules/linuxPPC64Gcc/c++Debug
Normal file
2
wmake/rules/linuxPPC64Gcc/c++Debug
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||||
|
c++OPT = -O0 -fdefault-inline
|
||||||
2
wmake/rules/linuxPPC64Gcc/c++Opt
Normal file
2
wmake/rules/linuxPPC64Gcc/c++Opt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
c++DBUG =
|
||||||
|
c++OPT = -O3
|
||||||
2
wmake/rules/linuxPPC64Gcc/c++Prof
Normal file
2
wmake/rules/linuxPPC64Gcc/c++Prof
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
c++DBUG = -pg
|
||||||
|
c++OPT = -O2
|
||||||
2
wmake/rules/linuxPPC64Gcc/cDebug
Normal file
2
wmake/rules/linuxPPC64Gcc/cDebug
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
cDBUG = -ggdb -DFULLDEBUG
|
||||||
|
cOPT = -O1 -fdefault-inline -finline-functions
|
||||||
2
wmake/rules/linuxPPC64Gcc/cOpt
Normal file
2
wmake/rules/linuxPPC64Gcc/cOpt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
cDBUG =
|
||||||
|
cOPT = -O3 -fno-gcse
|
||||||
2
wmake/rules/linuxPPC64Gcc/cProf
Normal file
2
wmake/rules/linuxPPC64Gcc/cProf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
cDBUG = -pg
|
||||||
|
cOPT = -O2
|
||||||
11
wmake/rules/linuxPPC64Gcc/general
Normal file
11
wmake/rules/linuxPPC64Gcc/general
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
CPP = /lib/cpp $(GFLAGS)
|
||||||
|
LD = ld -m elf64ppc
|
||||||
|
|
||||||
|
PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl
|
||||||
|
|
||||||
|
include $(GENERAL_RULES)/standard
|
||||||
|
|
||||||
|
include $(RULES)/X
|
||||||
|
include $(RULES)/c
|
||||||
|
include $(RULES)/c++
|
||||||
|
include $(GENERAL_RULES)/cint
|
||||||
3
wmake/rules/linuxPPC64Gcc/mplib
Normal file
3
wmake/rules/linuxPPC64Gcc/mplib
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
PFLAGS =
|
||||||
|
PINC =
|
||||||
|
PLIBS =
|
||||||
3
wmake/rules/linuxPPC64Gcc/mplibGAMMA
Normal file
3
wmake/rules/linuxPPC64Gcc/mplibGAMMA
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
PFLAGS =
|
||||||
|
PINC = -I$(MPI_ARCH_PATH)/include
|
||||||
|
PLIBS = -L$(MPI_ARCH_PATH)/lib -lgamma
|
||||||
3
wmake/rules/linuxPPC64Gcc/mplibHPMPI
Normal file
3
wmake/rules/linuxPPC64Gcc/mplibHPMPI
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
PFLAGS =
|
||||||
|
PINC = -I$(MPI_ARCH_PATH)/include -D_MPICC_H
|
||||||
|
PLIBS = -L$(MPI_ARCH_PATH)/lib/linux_amd64 -lmpi
|
||||||
3
wmake/rules/linuxPPC64Gcc/mplibLAM
Normal file
3
wmake/rules/linuxPPC64Gcc/mplibLAM
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
PFLAGS =
|
||||||
|
PINC = -I$(MPI_ARCH_PATH)/include
|
||||||
|
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpi -llam -lpthread -lutil
|
||||||
3
wmake/rules/linuxPPC64Gcc/mplibMPICH
Normal file
3
wmake/rules/linuxPPC64Gcc/mplibMPICH
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
PFLAGS =
|
||||||
|
PINC = -I$(MPI_ARCH_PATH)/include
|
||||||
|
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpich -lrt
|
||||||
3
wmake/rules/linuxPPC64Gcc/mplibMPICH-GM
Normal file
3
wmake/rules/linuxPPC64Gcc/mplibMPICH-GM
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
PFLAGS =
|
||||||
|
PINC = -I$(MPI_ARCH_PATH)/include
|
||||||
|
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpich -L$(GM_LIB_PATH) -lgm
|
||||||
3
wmake/rules/linuxPPC64Gcc/mplibOPENMPI
Normal file
3
wmake/rules/linuxPPC64Gcc/mplibOPENMPI
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
PFLAGS = -DOMPI_SKIP_MPICXX
|
||||||
|
PINC = -I$(MPI_ARCH_PATH)/include
|
||||||
|
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpi
|
||||||
4
wmake/rules/linuxPPC64Gcc/mplibQSMPI
Normal file
4
wmake/rules/linuxPPC64Gcc/mplibQSMPI
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
PFLAGS =
|
||||||
|
PINC = -I$(MPI_ARCH_PATH)/include
|
||||||
|
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpi
|
||||||
|
|
||||||
Reference in New Issue
Block a user