Skip to content
Snippets Groups Projects
Commit 493d9c8c authored by mattijs's avatar mattijs
Browse files

ENH: genericPolyPatch: filter out duplicates when writing

parent 53eadb02
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,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-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
...@@ -127,11 +127,14 @@ void Foam::genericPolyPatch::write(Ostream& os) const ...@@ -127,11 +127,14 @@ void Foam::genericPolyPatch::write(Ostream& os) const
forAllConstIter(dictionary, dict_, iter) forAllConstIter(dictionary, dict_, iter)
{ {
// Filter out any keywords already written by above
if if
( (
iter().keyword() != "type" iter().keyword() != "type"
&& iter().keyword() != "nFaces" && iter().keyword() != "nFaces"
&& iter().keyword() != "startFace" && iter().keyword() != "startFace"
&& iter().keyword() != "physicalType"
&& iter().keyword() != "inGroups"
) )
{ {
iter().write(os); iter().write(os);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment