https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Problem.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 "MooseObject.h"
13#include "PerfGraphInterface.h"
14
15class TimePeriodOld;
20{
21public:
23
25 virtual ~Problem();
26
27 virtual void init() = 0;
28
33
37 virtual void terminateSolve() { _termination_requested = true; };
38
43 virtual bool isSolveTerminationRequested() const { return _termination_requested; };
44
48 const ConsoleStream & console() const { return _console; }
49
50protected:
53
56
59};
const ConsoleStream _console
An instance of helper class to write streams to the Console objects.
A helper class for re-directing output streams to Console output objects form MooseObjects.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
Every object that can be built by the factory should be derived from this class.
Definition MooseObject.h:31
Interface for objects interacting with the PerfGraph.
Class that hold the whole problem being solved.
Definition Problem.h:20
bool _cli_option_found
True if the CLI option is found.
Definition Problem.h:52
static InputParameters validParams()
Definition Problem.C:15
virtual void init()=0
bool _color_output
True if we're going to attempt to write color output.
Definition Problem.h:55
const ConsoleStream & console() const
Return console handle.
Definition Problem.h:48
virtual void terminateSolve()
Allow objects to request clean termination of the solve.
Definition Problem.h:37
void _setCLIOption()
For Internal Use.
Definition Problem.h:32
virtual ~Problem()
Definition Problem.C:32
virtual bool isSolveTerminationRequested() const
Check of termination has been requested.
Definition Problem.h:43
bool _termination_requested
True if termination of the solve has been requested.
Definition Problem.h:58