OpenFOAM: v1912 released! - For more information see https://www.openfoam.com/releases/openfoam-v1912

Commit 398ecc8f authored by Mark Olesen's avatar Mark Olesen

ENH: allow groups when matching patch names

STYLE: minor formatting for cmake files
parent 377e8eaa
#------------------------------------------------------------------------------
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!
......
Markdown is supported
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