From e8f25b1385098d3584540dda399d20c4ec48c808 Mon Sep 17 00:00:00 2001
From: Mark Olesen <Mark.Olesen@esi-group.com>
Date: Wed, 19 Dec 2018 13:56:20 +0100
Subject: [PATCH] BUG: foamToVTK, vtkWrite stopped by processorCyclic (closes
 #1135)

- they had an isType<> instead of isA<>() check
---
 .../postProcessing/dataConversion/foamToVTK/foamToVTK.C         | 2 +-
 src/functionObjects/utilities/vtkWrite/vtkWriteUpdate.C         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/applications/utilities/postProcessing/dataConversion/foamToVTK/foamToVTK.C b/applications/utilities/postProcessing/dataConversion/foamToVTK/foamToVTK.C
index b584822c211..2d727012ce0 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToVTK/foamToVTK.C
+++ b/applications/utilities/postProcessing/dataConversion/foamToVTK/foamToVTK.C
@@ -171,7 +171,7 @@ labelList getSelectedPatches
         {
             continue;
         }
-        else if (Pstream::parRun() && isType<processorPolyPatch>(pp))
+        else if (Pstream::parRun() && bool(isA<processorPolyPatch>(pp)))
         {
             break; // No processor patches for parallel output
         }
diff --git a/src/functionObjects/utilities/vtkWrite/vtkWriteUpdate.C b/src/functionObjects/utilities/vtkWrite/vtkWriteUpdate.C
index 87fe8a3d3a7..027819f7ee1 100644
--- a/src/functionObjects/utilities/vtkWrite/vtkWriteUpdate.C
+++ b/src/functionObjects/utilities/vtkWrite/vtkWriteUpdate.C
@@ -140,7 +140,7 @@ Foam::labelList Foam::functionObjects::vtkWrite::getSelectedPatches
         {
             continue;
         }
-        else if (isType<processorPolyPatch>(pp))
+        else if (isA<processorPolyPatch>(pp))
         {
             break; // No processor patches
         }
-- 
GitLab