ENH: MeshWave: allow 1 cells cases.
This commit is contained in:
parent
a5ee1669b4
commit
51b8a7367c
@ -298,7 +298,7 @@ label selectOutsideCells
|
||||
mesh,
|
||||
outsideFaces.shrink(),
|
||||
outsideFacesInfo.shrink(),
|
||||
mesh.nCells() // max iterations
|
||||
mesh.globalData().nTotalCells()+1 // max iterations
|
||||
);
|
||||
|
||||
// Now regionCalc should hold info on cells that are reachable from
|
||||
|
@ -32,6 +32,7 @@ License
|
||||
#include "meshTools.H"
|
||||
#include "hexMatcher.H"
|
||||
#include "Switch.H"
|
||||
#include "globalMeshData.H"
|
||||
|
||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||
|
||||
@ -206,7 +207,7 @@ Foam::vectorField Foam::directions::propagateDirection
|
||||
mesh,
|
||||
changedFaces,
|
||||
changedFacesInfo,
|
||||
mesh.nCells()
|
||||
mesh.globalData().nTotalCells()+1
|
||||
);
|
||||
|
||||
const List<directionInfo>& cellInfo = directionCalc.allCellInfo();
|
||||
|
@ -2332,7 +2332,7 @@ Foam::labelList Foam::hexRef8::consistentSlowRefinement
|
||||
seedFacesInfo.clear();
|
||||
|
||||
// Iterate until no change. Now 2:1 face difference should be satisfied
|
||||
levelCalc.iterate(mesh_.globalData().nTotalFaces());
|
||||
levelCalc.iterate(mesh_.globalData().nTotalFaces()+1);
|
||||
|
||||
|
||||
// Now check point-connected cells (face-connected cells already ok):
|
||||
@ -2836,7 +2836,7 @@ Foam::labelList Foam::hexRef8::consistentSlowRefinement2
|
||||
seedFacesInfo,
|
||||
allFaceInfo,
|
||||
allCellInfo,
|
||||
mesh_.globalData().nTotalCells()
|
||||
mesh_.globalData().nTotalCells()+1
|
||||
);
|
||||
|
||||
|
||||
|
@ -115,7 +115,7 @@ void Foam::inverseFaceDistanceDiffusivity::correct()
|
||||
mesh,
|
||||
changedFaces,
|
||||
faceDist,
|
||||
mesh.globalData().nTotalCells() // max iterations
|
||||
mesh.globalData().nTotalCells()+1 // max iterations
|
||||
);
|
||||
|
||||
const List<wallPoint>& faceInfo = waveInfo.allFaceInfo();
|
||||
|
@ -322,7 +322,7 @@ void Foam::cellClassification::markCells
|
||||
changedFaces, // Labels of changed faces
|
||||
changedFacesInfo, // Information on changed faces
|
||||
cellInfoList, // Information on all cells
|
||||
mesh_.globalData().nTotalCells() // max iterations
|
||||
mesh_.globalData().nTotalCells()+1 // max iterations
|
||||
);
|
||||
|
||||
// Get information out of cellInfoList
|
||||
|
@ -225,7 +225,7 @@ void Foam::patchDataWave<TransferType>::correct()
|
||||
mesh(),
|
||||
changedFaces,
|
||||
faceDist,
|
||||
mesh().globalData().nTotalCells() // max iterations
|
||||
mesh().globalData().nTotalCells()+1 // max iterations
|
||||
);
|
||||
|
||||
|
||||
|
@ -186,7 +186,7 @@ void Foam::patchWave::correct()
|
||||
mesh(),
|
||||
changedFaces,
|
||||
faceDist,
|
||||
mesh().globalData().nTotalCells() // max iterations
|
||||
mesh().globalData().nTotalCells()+1 // max iterations
|
||||
);
|
||||
|
||||
|
||||
|
@ -148,7 +148,7 @@ Foam::labelList Foam::structuredDecomp::decompose
|
||||
patchData,
|
||||
faceData,
|
||||
cellData,
|
||||
mesh.globalData().nTotalCells()
|
||||
mesh.globalData().nTotalCells()+1
|
||||
);
|
||||
|
||||
// And extract
|
||||
|
@ -137,7 +137,7 @@ void smoothDelta::calcDelta()
|
||||
changedFacesInfo,
|
||||
faceDeltaData,
|
||||
cellDeltaData,
|
||||
mesh_.globalData().nTotalCells() // max iterations
|
||||
mesh_.globalData().nTotalCells()+1 // max iterations
|
||||
);
|
||||
|
||||
forAll(delta_, cellI)
|
||||
|
Loading…
Reference in New Issue
Block a user