Skip to content
Snippets Groups Projects
Commit 398ecc8f authored by Mark OLESEN's avatar Mark OLESEN
Browse files

ENH: allow groups when matching patch names

STYLE: minor formatting for cmake files
parent 377e8eaa
No related merge requests found
#------------------------------------------------------------------------------
include(${PARAVIEW_USE_FILE})
# ----------------------------------------------------------------------
......
#------------------------------------------------------------------------------
# Standard definitions when using OpenFOAM
if (NOT EXISTS "$ENV{WM_PROJECT_DIR}")
......@@ -28,5 +29,4 @@ set(CMAKE_CXX_FLAGS_RELEASE
"-O3 -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wnon-virtual-dtor -Wno-overloaded-virtual"
)
#-----------------------------------------------------------------------------
......@@ -85,12 +85,13 @@ void Foam::vtk::fvMeshAdaptor::definePatchIds()
}
else
{
labelHashSet ids(patches.patchSet(patchPatterns_, false, false));
// Don't warn if not found, use patch groups
labelHashSet ids(patches.patchSet(patchPatterns_, false, true));
// Restricted to non-processor patches
ids.filterKeys
(
[nNonProcessor](const label i){ return i < nNonProcessor; }
[nNonProcessor](label i){ return i < nNonProcessor; }
);
// MUST be sorted. Other internal logic relies upon this!
......
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