Commit 35487d3b authored by Sergio Ferraris's avatar Sergio Ferraris
Browse files

ENH: Adding flaf for re-start to loop over uncover faces in AMI method faceAreaWeight

parent b2fd56d5
......@@ -481,7 +481,8 @@ Foam::faceAreaWeightAMI<SourcePatch, TargetPatch>::faceAreaWeightAMI
const scalarField& srcMagSf,
const scalarField& tgtMagSf,
const faceAreaIntersect::triangulationMode& triMode,
const bool reverseTarget
const bool reverseTarget,
const bool restartUncoveredSourceFace
)
:
AMIMethod<SourcePatch, TargetPatch>
......@@ -492,7 +493,8 @@ Foam::faceAreaWeightAMI<SourcePatch, TargetPatch>::faceAreaWeightAMI
tgtMagSf,
triMode,
reverseTarget
)
),
restartUncoveredSourceFace_(restartUncoveredSourceFace)
{}
......@@ -557,7 +559,7 @@ void Foam::faceAreaWeightAMI<SourcePatch, TargetPatch>::calculate
// Check for badly covered faces
if (debug)
if (restartUncoveredSourceFace_)
{
restartUncoveredSourceFace
(
......
......@@ -51,6 +51,13 @@ class faceAreaWeightAMI
:
public AMIMethod<SourcePatch, TargetPatch>
{
private:
// Private data
//- Flag to restart uncovered source faces
const bool restartUncoveredSourceFace_;
protected:
......@@ -136,7 +143,8 @@ public:
const scalarField& srcMagSf,
const scalarField& tgtMagSf,
const faceAreaIntersect::triangulationMode& triMode,
const bool reverseTarget = false
const bool reverseTarget = false,
const bool restartUncoveredSourceFace = true
);
......
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