www.mooseframework.org
Problem.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #ifndef PROBLEM_H
16 #define PROBLEM_H
17 
18 #include "MooseObject.h"
19 
20 class TimePeriodOld;
21 class Problem;
22 
23 template <>
25 
29 class Problem : public MooseObject
30 {
31 public:
33  virtual ~Problem();
34 
35  virtual void init() = 0;
36 
40  void _setCLIOption() { _cli_option_found = true; }
41 
45  virtual void terminateSolve() { _termination_requested = true; };
46 
52 
53 protected:
55  bool _cli_option_found;
56 
59 
62 };
63 
64 #endif /* PROBLEM_H */
virtual void init()=0
Problem(const InputParameters &parameters)
Definition: Problem.C:29
virtual bool isSolveTerminationRequested()
Check of termination has been requested.
Definition: Problem.h:51
bool _cli_option_found
True if the CLI option is found.
Definition: Problem.h:51
virtual ~Problem()
Definition: Problem.C:37
Class that hold the whole problem being solved.
Definition: Problem.h:29
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Every object that can be built by the factory should be derived from this class.
Definition: MooseObject.h:36
virtual void terminateSolve()
Allow objects to request clean termination of the solve.
Definition: Problem.h:45
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
InputParameters validParams< Problem >()
Definition: Problem.C:21
bool _termination_requested
True if termination of the solve has been requested.
Definition: Problem.h:61
void _setCLIOption()
For Internal Use.
Definition: Problem.h:40
bool _color_output
True if we&#39;re going to attempt to write color output.
Definition: Problem.h:58