Skip to content
Snippets Groups Projects
Commit 5e6e03da 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 3eedde54
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -25,7 +25,6 @@ License ...@@ -25,7 +25,6 @@ License
#include "patchInteractionDataList.H" #include "patchInteractionDataList.H"
#include "stringListOps.H" #include "stringListOps.H"
#include "wallPolyPatch.H"
// * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * * //
...@@ -70,18 +69,18 @@ Foam::patchInteractionDataList::patchInteractionDataList ...@@ -70,18 +69,18 @@ Foam::patchInteractionDataList::patchInteractionDataList
patchGroupIDs_[i].transfer(patchIDs); patchGroupIDs_[i].transfer(patchIDs);
} }
// check that all walls are specified // Check that all patches are specified
DynamicList<word> badWalls; DynamicList<word> badPatches;
forAll(bMesh, patchI) forAll(bMesh, patchI)
{ {
const polyPatch& pp = 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 FatalErrorIn
( (
...@@ -90,9 +89,9 @@ Foam::patchInteractionDataList::patchInteractionDataList ...@@ -90,9 +89,9 @@ Foam::patchInteractionDataList::patchInteractionDataList
"const polyMesh&, " "const polyMesh&, "
"const dictionary&" "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 << "interaction. Please specify data for patches:" << nl
<< badWalls << nl << exit(FatalError); << badPatches << nl << exit(FatalError);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment