Updates to overlapFringe::evaluateNonOversetBoundaries

This function is now static instead of ordinary member function so it can be
used by adaptiveOverlapFringe. A slight reorganization of this is needed.
This commit is contained in:
Vuko Vukcevic 2018-07-12 15:35:22 +02:00
parent c9cfe3cbf8
commit 8a1f5f66fc
2 changed files with 6 additions and 4 deletions

View file

@ -47,7 +47,7 @@ namespace Foam
void Foam::overlapFringe::evaluateNonOversetBoundaries
(
volScalarField::GeometricBoundaryField& psib
) const
)
{
// Code practically copy/pasted from GeometricBoundaryField::evaluateCoupled
// GeometricBoundaryField should be redesigned to accomodate for such needs
@ -88,8 +88,10 @@ void Foam::overlapFringe::evaluateNonOversetBoundaries
}
else if (Pstream::defaultComms() == Pstream::scheduled)
{
// Get the mesh by looking at first fvPatchField
const lduSchedule& patchSchedule =
region().mesh().globalData().patchSchedule();
psib[0].dimensionedInternalField().mesh().globalData().
patchSchedule();
forAll(patchSchedule, patchEvalI)
{

View file

@ -148,10 +148,10 @@ public:
//- Helper function used to evaluate coupled boundaries, excluding
// overset patch
void evaluateNonOversetBoundaries
static void evaluateNonOversetBoundaries
(
volScalarField::GeometricBoundaryField& psib
) const;
);
// Constructors