From ee67553d2b95a4fabf792c6981a8ac489a896679 Mon Sep 17 00:00:00 2001 From: mattijs Date: Wed, 8 Sep 2010 17:29:24 +0100 Subject: [PATCH 1/2] STYLE: inverseDistanceDiffusivity : typo in comment --- .../inverseDistance/inverseDistanceDiffusivity.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fvMotionSolver/motionDiffusivity/inverseDistance/inverseDistanceDiffusivity.H b/src/fvMotionSolver/motionDiffusivity/inverseDistance/inverseDistanceDiffusivity.H index ecdd27573e..7f0a58497e 100644 --- a/src/fvMotionSolver/motionDiffusivity/inverseDistance/inverseDistanceDiffusivity.H +++ b/src/fvMotionSolver/motionDiffusivity/inverseDistance/inverseDistanceDiffusivity.H @@ -53,7 +53,7 @@ class inverseDistanceDiffusivity // Private data //- Patches selected to base the distance on - // These can contain regular expressions and the actuallt patch names + // These can contain regular expressions and the actual patch names // will be searched for. wordList patchNames_; From e709d1a4013932e8f4796e49dd3397548e50151a Mon Sep 17 00:00:00 2001 From: mattijs Date: Wed, 8 Sep 2010 17:29:51 +0100 Subject: [PATCH 2/2] ENH: PointEdgeWave : have explicit iterate option --- src/meshTools/PointEdgeWave/PointEdgeWave.C | 24 +++++++++++++++++++++ src/meshTools/PointEdgeWave/PointEdgeWave.H | 9 ++++++++ 2 files changed, 33 insertions(+) diff --git a/src/meshTools/PointEdgeWave/PointEdgeWave.C b/src/meshTools/PointEdgeWave/PointEdgeWave.C index bcb91804c4..c27e8ab78f 100644 --- a/src/meshTools/PointEdgeWave/PointEdgeWave.C +++ b/src/meshTools/PointEdgeWave/PointEdgeWave.C @@ -680,6 +680,30 @@ Foam::PointEdgeWave::PointEdgeWave } +template +Foam::PointEdgeWave::PointEdgeWave +( + const polyMesh& mesh, + List& allPointInfo, + List& 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()), + nEvals_(0), + nUnvisitedPoints_(mesh_.nPoints()), + nUnvisitedEdges_(mesh_.nEdges()) +{} + + // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // template diff --git a/src/meshTools/PointEdgeWave/PointEdgeWave.H b/src/meshTools/PointEdgeWave/PointEdgeWave.H index 128885b0fd..f5f46ae151 100644 --- a/src/meshTools/PointEdgeWave/PointEdgeWave.H +++ b/src/meshTools/PointEdgeWave/PointEdgeWave.H @@ -275,6 +275,15 @@ public: const label maxIter ); + //- Construct from mesh. Use setPointInfo and iterate() to do + // actual calculation + PointEdgeWave + ( + const polyMesh& mesh, + List& allPointInfo, + List& allEdgeInfo + ); + //- Destructor ~PointEdgeWave();