From 5e37c4821d4f1ef0d1ef4d0e0f8362849192b43c Mon Sep 17 00:00:00 2001 From: Joshua Hansel Date: Mon, 29 Jul 2019 09:31:20 -0600 Subject: [PATCH] Made verbose flag constant in Executioner Refs #13795 --- framework/include/executioners/Executioner.h | 4 ++-- framework/include/timesteppers/TimeStepper.h | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/framework/include/executioners/Executioner.h b/framework/include/executioners/Executioner.h index d606faf821f5..6ff3e82bcff4 100644 --- a/framework/include/executioners/Executioner.h +++ b/framework/include/executioners/Executioner.h @@ -117,7 +117,7 @@ class Executioner : public MooseObject, * Get the verbose output flag * @return The verbose output flag */ - bool & verbose() { return _verbose; } + const bool & verbose() const { return _verbose; } protected: /** @@ -139,5 +139,5 @@ class Executioner : public MooseObject, std::string _restart_file_base; /// True if printing out additional information - bool _verbose; + const bool & _verbose; }; diff --git a/framework/include/timesteppers/TimeStepper.h b/framework/include/timesteppers/TimeStepper.h index 0202466ebed1..cbfbacced158 100644 --- a/framework/include/timesteppers/TimeStepper.h +++ b/framework/include/timesteppers/TimeStepper.h @@ -133,7 +133,7 @@ class TimeStepper : public MooseObject, public Restartable, public ScalarCouplea Real & _timestep_tolerance; ///should detailed diagnostic output be printed - bool & _verbose; + const bool & _verbose; /// Whether or not the previous solve converged. bool _converged; @@ -148,4 +148,3 @@ class TimeStepper : public MooseObject, public Restartable, public ScalarCouplea /// Size of the current time step as computed by the Stepper. Note that the actual dt that was taken might be smaller if the Executioner constrained it. Real & _current_dt; }; -