surfaceFieldValue: Fix run-time usage with non-conformal coupled

This commit is contained in:
Will Bainbridge
2022-08-04 14:59:56 +01:00
parent 792585f9ee
commit 3ce205e2b3
2 changed files with 16 additions and 8 deletions

View File

@ -30,6 +30,7 @@ License
#include "mergePoints.H"
#include "indirectPrimitivePatch.H"
#include "PatchTools.H"
#include "fvMeshStitcher.H"
#include "polyTopoChangeMap.H"
#include "polyMeshMap.H"
#include "addToRunTimeSelectionTable.H"
@ -442,7 +443,7 @@ void Foam::functionObjects::fieldValues::surfaceFieldValue::initialise
}
}
if (nFaces_ == 0)
if (nFaces_ == 0 && (!mesh_.stitcher().stitches() || !mesh_.conformal()))
{
FatalErrorInFunction
<< type() << " " << name() << ": "
@ -826,7 +827,8 @@ void Foam::functionObjects::fieldValues::surfaceFieldValue::movePoints
{
if (&mesh == &mesh_)
{
// It may be necessary to reset if the mesh moves
// It may be necessary to reset if the mesh moves. The total area might
// change, as might non-conformal faces.
initialise(dict_);
}
}