From bd14cf8e1aa6243deda091ac086873cf4bd35652 Mon Sep 17 00:00:00 2001 From: Tomas Oberhuber <tomas.oberhuber@fjfi.cvut.cz> Date: Mon, 4 Feb 2019 10:51:52 +0100 Subject: [PATCH] Fixed type of verbose in tnl-diff. --- src/Tools/tnl-diff.cpp | 2 +- src/Tools/tnl-diff.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Tools/tnl-diff.cpp b/src/Tools/tnl-diff.cpp index 360423de72..b35dba1726 100644 --- a/src/Tools/tnl-diff.cpp +++ b/src/Tools/tnl-diff.cpp @@ -28,7 +28,7 @@ void setupConfig( Config::ConfigDescription& config ) config.addEntry< bool >( "write-graph", "Draws a graph in the Gnuplot format of the dependence of the error norm on t.", true ); config.addEntry< bool >( "write-log-graph", "Draws a logarithmic graph in the Gnuplot format of the dependence of the error norm on t.", true ); config.addEntry< double >( "snapshot-period", "The period between consecutive snapshots.", 0.0 ); - config.addEntry< int >( "verbose", "Sets verbosity.", 1 ); + config.addEntry< bool >( "verbose", "Sets verbosity.", true ); } int main( int argc, char* argv[] ) diff --git a/src/Tools/tnl-diff.h b/src/Tools/tnl-diff.h index 9623aa34bc..0f90bc28aa 100644 --- a/src/Tools/tnl-diff.h +++ b/src/Tools/tnl-diff.h @@ -604,7 +604,7 @@ bool setValueType( const MeshPointer& meshPointer, template< typename Mesh > bool processFiles( const Config::ParameterContainer& parameters ) { - int verbose = parameters. getParameter< int >( "verbose"); + int verbose = parameters. getParameter< bool >( "verbose"); std::vector< String > inputFiles = parameters. getParameter< std::vector< String > >( "input-files" ); /**** -- GitLab