Skip to content
Snippets Groups Projects
Commit 4916a13d authored by Henry's avatar Henry
Browse files

patchInteractionDataList: Remove default patch interaction method

Now interaction methods must be specified for all non-coupled patches.
If this approach proves irritating a warning rather than an error could
be generated.
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1670
parent 65152a31
Branches
Tags
No related merge requests found
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -25,7 +25,6 @@ License
#include "patchInteractionDataList.H"
#include "stringListOps.H"
#include "wallPolyPatch.H"
// * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * * //
......@@ -70,18 +69,18 @@ Foam::patchInteractionDataList::patchInteractionDataList
patchGroupIDs_[i].transfer(patchIDs);
}
// check that all walls are specified
DynamicList<word> badWalls;
// Check that all patches are specified
DynamicList<word> badPatches;
forAll(bMesh, patchI)
{
const polyPatch& pp = bMesh[patchI];
if (isA<wallPolyPatch>(pp) && applyToPatch(pp.index()) < 0)
if (!pp.coupled() && applyToPatch(pp.index()) < 0)
{
badWalls.append(pp.name());
badPatches.append(pp.name());
}
}
if (badWalls.size() > 0)
if (badPatches.size() > 0)
{
FatalErrorIn
(
......@@ -90,9 +89,9 @@ Foam::patchInteractionDataList::patchInteractionDataList
"const polyMesh&, "
"const dictionary&"
")"
) << "All wall patches must be specified when employing local patch "
) << "All patches must be specified when employing local patch "
<< "interaction. Please specify data for patches:" << nl
<< badWalls << nl << exit(FatalError);
<< badPatches << nl << exit(FatalError);
}
}
......
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