https://mooseframework.inl.gov
TerminateControl.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "THMControl.h"
13 
18 {
19 public:
21 
22  virtual void execute();
23 
24 protected:
26  const bool _throw_error;
27 
29  const std::string & _termination_message;
30 
32  const bool & _terminate;
33 
34 public:
36 };
TerminateControl(const InputParameters &parameters)
const bool & _terminate
The control data that indicates if the simulation should be terminated.
const bool _throw_error
Flag to throw an error if the terminate condition is met.
static InputParameters validParams()
const std::string & _termination_message
Message to use if termination occurs.
const InputParameters & parameters() const
This control block will terminate a run if its input indicates so.
virtual void execute()