diff --git a/applications/utilities/postProcessing/dataConversion/foamToVTK/foamToVTK.C b/applications/utilities/postProcessing/dataConversion/foamToVTK/foamToVTK.C index 0a854af9d0..fee07515ee 100644 --- a/applications/utilities/postProcessing/dataConversion/foamToVTK/foamToVTK.C +++ b/applications/utilities/postProcessing/dataConversion/foamToVTK/foamToVTK.C @@ -83,12 +83,13 @@ Usage Combine all patches into a single file @param -excludePatches \\n - Specify patches to exclude. For example, + Specify patches (wildcards) to exclude. For example, @verbatim - -excludePatches "( inlet_1 inlet_2 )" + -excludePatches '( inlet_1 inlet_2 "proc.*")' @endverbatim The quoting is required to avoid shell expansions and to pass the - information as a single argument. + information as a single argument. The double quotes denote a regular + expression. @param -useTimeName \n use the time index in the VTK file name instead of the time index @@ -140,6 +141,7 @@ Note #include "faceZoneMesh.H" #include "Cloud.H" #include "passiveParticle.H" +#include "stringListOps.H" #include "vtkMesh.H" #include "readFields.H" @@ -192,7 +194,7 @@ void print(Ostream& os, const wordList& flds) labelList getSelectedPatches ( const polyBoundaryMesh& patches, - const HashSet& excludePatches + const List& excludePatches //HashSet& excludePatches ) { DynamicList