mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: renumberMesh: added Sloan renumbering
This commit is contained in:
14
applications/utilities/mesh/manipulation/renumberMesh/Allwmake
Executable file
14
applications/utilities/mesh/manipulation/renumberMesh/Allwmake
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
export SLOAN_LINK_FLAGS=''
|
||||
|
||||
if [ -f "${FOAM_LIBBIN}/libSloanRenumber.so" ]
|
||||
then
|
||||
echo "Found libSloanRenumber.so -- enabling Sloan renumbering support."
|
||||
export SLOAN_LINK_FLAGS="-lSloanRenumber"
|
||||
fi
|
||||
|
||||
wmake
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
@ -1,4 +1,5 @@
|
||||
EXE_INC = \
|
||||
-DFULLDEBUG -g -O0 \
|
||||
-I$(LIB_SRC)/meshTools/lnInclude \
|
||||
-I$(LIB_SRC)/dynamicMesh/lnInclude \
|
||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||
@ -11,4 +12,5 @@ EXE_LIBS = \
|
||||
-lfiniteVolume \
|
||||
-lgenericPatchFields \
|
||||
-lrenumberMethods \
|
||||
$(SLOAN_LINK_FLAGS) \
|
||||
-ldecompositionMethods -L$(FOAM_LIBBIN)/dummy -lmetisDecomp -lscotchDecomp
|
||||
|
||||
@ -131,9 +131,9 @@ void getBand
|
||||
|
||||
forAll(nIntersect, cellI)
|
||||
{
|
||||
for (label rowI = cellI-cellBandwidth[cellI]; rowI < cellI; rowI++)
|
||||
for (label colI = cellI-cellBandwidth[cellI]; colI <= cellI; colI++)
|
||||
{
|
||||
nIntersect[rowI]++;
|
||||
nIntersect[colI]++;
|
||||
}
|
||||
}
|
||||
|
||||
@ -598,14 +598,6 @@ int main(int argc, char *argv[])
|
||||
sumSqrIntersect
|
||||
);
|
||||
|
||||
if (band != getBand(mesh.faceOwner(), mesh.faceNeighbour()))
|
||||
{
|
||||
FatalErrorIn(args.executable())
|
||||
<< "band:" << band
|
||||
<< abort(FatalError);
|
||||
}
|
||||
|
||||
|
||||
reduce(band, maxOp<label>());
|
||||
reduce(profile, sumOp<scalar>());
|
||||
scalar rmsFrontwidth = Foam::sqrt
|
||||
|
||||
@ -37,6 +37,7 @@ sortCoupledFaceCells false;
|
||||
|
||||
|
||||
method CuthillMcKee;
|
||||
//method Sloan;
|
||||
//method manual;
|
||||
//method random;
|
||||
//method spring;
|
||||
@ -47,7 +48,6 @@ method CuthillMcKee;
|
||||
// reverse true;
|
||||
//}
|
||||
|
||||
|
||||
manualCoeffs
|
||||
{
|
||||
// In system directory: new-to-original (i.e. order) labelIOList
|
||||
|
||||
Reference in New Issue
Block a user