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
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))
......
......@@ -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;
/*---------------------------------------------------------------------------*\
......
......@@ -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))
......
......@@ -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;
......
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