Skip to content

Commit

Permalink
Made verbose flag constant in Executioner
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuahansel committed Jul 29, 2019
1 parent bda1e12 commit 5e37c48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions framework/include/executioners/Executioner.h
Expand Up @@ -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:
/**
Expand All @@ -139,5 +139,5 @@ class Executioner : public MooseObject,
std::string _restart_file_base;

/// True if printing out additional information
bool _verbose;
const bool & _verbose;
};
3 changes: 1 addition & 2 deletions framework/include/timesteppers/TimeStepper.h
Expand Up @@ -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;
Expand All @@ -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;
};

0 comments on commit 5e37c48

Please sign in to comment.