Skip to content
Snippets Groups Projects
Commit 70c697fd authored by Kutalmış Berçin's avatar Kutalmış Berçin Committed by Mark OLESEN
Browse files

BUG: momentum: boundary field mismatch on "empty" patches (fixes #2121)

parent 64deb4e4
Branches
Tags
No related merge requests found
...@@ -30,6 +30,7 @@ License ...@@ -30,6 +30,7 @@ License
#include "volFields.H" #include "volFields.H"
#include "cellSet.H" #include "cellSet.H"
#include "cylindricalRotation.H" #include "cylindricalRotation.H"
#include "emptyPolyPatch.H"
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
...@@ -556,6 +557,11 @@ bool Foam::functionObjects::momentum::write() ...@@ -556,6 +557,11 @@ bool Foam::functionObjects::momentum::write()
forAll(pbm, patchi) forAll(pbm, patchi)
{ {
if (isA<emptyPolyPatch>(pbm[patchi]))
{
continue;
}
const auto& pts = pbm[patchi].faceCentres(); const auto& pts = pbm[patchi].faceCentres();
const label len = pts.size(); const label len = pts.size();
......
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