Commit e709d1a4 authored by mattijs's avatar mattijs
Browse files

ENH: PointEdgeWave : have explicit iterate option

parent ee67553d
......@@ -680,6 +680,30 @@ Foam::PointEdgeWave<Type>::PointEdgeWave
}
template <class Type>
Foam::PointEdgeWave<Type>::PointEdgeWave
(
const polyMesh& mesh,
List<Type>& allPointInfo,
List<Type>& allEdgeInfo
)
:
mesh_(mesh),
allPointInfo_(allPointInfo),
allEdgeInfo_(allEdgeInfo),
changedPoint_(mesh_.nPoints(), false),
changedPoints_(mesh_.nPoints()),
nChangedPoints_(0),
changedEdge_(mesh_.nEdges(), false),
changedEdges_(mesh_.nEdges()),
nChangedEdges_(0),
nCyclicPatches_(countPatchType<cyclicPolyPatch>()),
nEvals_(0),
nUnvisitedPoints_(mesh_.nPoints()),
nUnvisitedEdges_(mesh_.nEdges())
{}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
template <class Type>
......
......@@ -275,6 +275,15 @@ public:
const label maxIter
);
//- Construct from mesh. Use setPointInfo and iterate() to do
// actual calculation
PointEdgeWave
(
const polyMesh& mesh,
List<Type>& allPointInfo,
List<Type>& allEdgeInfo
);
//- Destructor
~PointEdgeWave();
......
Markdown is supported
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