diff --git a/src/paraview-plugins/blockMeshReader/library/vtkPVblockMesh.C b/src/paraview-plugins/blockMeshReader/library/vtkPVblockMesh.C index 1f0d6163513f9a43ec17613ab9522e92e506787f..99df826eca0a96d2f0825fbf1744bf21d480ac93 100644 --- a/src/paraview-plugins/blockMeshReader/library/vtkPVblockMesh.C +++ b/src/paraview-plugins/blockMeshReader/library/vtkPVblockMesh.C @@ -183,9 +183,13 @@ Foam::vtkPVblockMesh::vtkPVblockMesh rangeEdges_("edges"), rangeCorners_("corners") { + // Reduce some output + ::Foam::infoDetailLevel = 0; + DebugInfo << "vtkPVblockMesh - " << FileName << endl; - // avoid argList and get rootPath/caseName directly from the file + // Avoid argList (possible side-effects) + // - get rootPath/caseName directly from the file fileName fullCasePath(fileName(FileName).path()); if (!isDir(fullCasePath)) diff --git a/src/paraview-plugins/blockMeshReader/library/vtkPVblockMesh.H b/src/paraview-plugins/blockMeshReader/library/vtkPVblockMesh.H index 71b3e2853fa22f01210e379c00172c3949e9d9c6..5c14b9c621f3effa4235b9a3a820b441f110b35b 100644 --- a/src/paraview-plugins/blockMeshReader/library/vtkPVblockMesh.H +++ b/src/paraview-plugins/blockMeshReader/library/vtkPVblockMesh.H @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2016 OpenFOAM Foundation - Copyright (C) 2017 OpenCFD Ltd. + Copyright (C) 2017-2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -71,11 +71,9 @@ template<class T> class vtkSmartPointer; namespace Foam { -// OpenFOAM class forward declarations -class argList; +// Forward Declarations (OpenFOAM) class Time; class blockMesh; - template<class Type> class List; /*---------------------------------------------------------------------------*\ diff --git a/src/paraview-plugins/foamReader/library/vtkPVFoam.C b/src/paraview-plugins/foamReader/library/vtkPVFoam.C index 8db72b8bf1334abf448085f314565e630c429f0f..9544330fa73bb52b034f0e567ee86ec94c97512b 100644 --- a/src/paraview-plugins/foamReader/library/vtkPVFoam.C +++ b/src/paraview-plugins/foamReader/library/vtkPVFoam.C @@ -296,6 +296,9 @@ Foam::vtkPVFoam::vtkPVFoam rangeFaceSets_("faceSet"), rangePointSets_("pointSet") { + // Reduce some output + ::Foam::infoDetailLevel = 0; + if (debug) { Info<< "vtkPVFoam - " << vtkFileName << nl; @@ -304,7 +307,8 @@ Foam::vtkPVFoam::vtkPVFoam fileName FileName(vtkFileName); - // avoid argList and get rootPath/caseName directly from the file + // Avoid argList (possible side-effects) + // - get rootPath/caseName directly from the file fileName fullCasePath(FileName.path()); if (!isDir(fullCasePath)) diff --git a/src/paraview-plugins/foamReader/library/vtkPVFoam.H b/src/paraview-plugins/foamReader/library/vtkPVFoam.H index 752e18981ef382e7cca45c2ca0916425fbac50ad..a3233fb88ed6959a52b7adf9fed891ca4c888e01 100644 --- a/src/paraview-plugins/foamReader/library/vtkPVFoam.H +++ b/src/paraview-plugins/foamReader/library/vtkPVFoam.H @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2016 OpenFOAM Foundation - Copyright (C) 2017-2019 OpenCFD Ltd. + Copyright (C) 2017-2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -94,7 +94,6 @@ namespace Foam { // Forward Declarations (OpenFOAM) -class argList; class Time; class faMesh; class fvMesh;