Commit fd89cf4b authored by Mark Olesen's avatar Mark Olesen

ENH: set InfoDetail level = 0 for paraview plugins (reduces some output)

parent d534b220
...@@ -183,9 +183,13 @@ Foam::vtkPVblockMesh::vtkPVblockMesh ...@@ -183,9 +183,13 @@ Foam::vtkPVblockMesh::vtkPVblockMesh
rangeEdges_("edges"), rangeEdges_("edges"),
rangeCorners_("corners") rangeCorners_("corners")
{ {
// Reduce some output
::Foam::infoDetailLevel = 0;
DebugInfo << "vtkPVblockMesh - " << FileName << endl; 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()); fileName fullCasePath(fileName(FileName).path());
if (!isDir(fullCasePath)) if (!isDir(fullCasePath))
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Copyright (C) 2011-2016 OpenFOAM Foundation Copyright (C) 2011-2016 OpenFOAM Foundation
Copyright (C) 2017 OpenCFD Ltd. Copyright (C) 2017-2020 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
...@@ -71,11 +71,9 @@ template<class T> class vtkSmartPointer; ...@@ -71,11 +71,9 @@ template<class T> class vtkSmartPointer;
namespace Foam namespace Foam
{ {
// OpenFOAM class forward declarations // Forward Declarations (OpenFOAM)
class argList;
class Time; class Time;
class blockMesh; class blockMesh;
template<class Type> class List; template<class Type> class List;
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
......
...@@ -296,6 +296,9 @@ Foam::vtkPVFoam::vtkPVFoam ...@@ -296,6 +296,9 @@ Foam::vtkPVFoam::vtkPVFoam
rangeFaceSets_("faceSet"), rangeFaceSets_("faceSet"),
rangePointSets_("pointSet") rangePointSets_("pointSet")
{ {
// Reduce some output
::Foam::infoDetailLevel = 0;
if (debug) if (debug)
{ {
Info<< "vtkPVFoam - " << vtkFileName << nl; Info<< "vtkPVFoam - " << vtkFileName << nl;
...@@ -304,7 +307,8 @@ Foam::vtkPVFoam::vtkPVFoam ...@@ -304,7 +307,8 @@ Foam::vtkPVFoam::vtkPVFoam
fileName FileName(vtkFileName); 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()); fileName fullCasePath(FileName.path());
if (!isDir(fullCasePath)) if (!isDir(fullCasePath))
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Copyright (C) 2011-2016 OpenFOAM Foundation Copyright (C) 2011-2016 OpenFOAM Foundation
Copyright (C) 2017-2019 OpenCFD Ltd. Copyright (C) 2017-2020 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
...@@ -94,7 +94,6 @@ namespace Foam ...@@ -94,7 +94,6 @@ namespace Foam
{ {
// Forward Declarations (OpenFOAM) // Forward Declarations (OpenFOAM)
class argList;
class Time; class Time;
class faMesh; class faMesh;
class fvMesh; class fvMesh;
......
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