https://mooseframework.inl.gov
TestSourceStepper.C
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 #include "TestSourceStepper.h"
11 
12 registerMooseObject("MooseTestApp", TestSourceStepper);
13 
16 {
18  params.addRequiredParam<Real>("dt", "Size of the time step");
19 
20  params.addClassDescription("A Timestepper that used to test rejectStep with CompositionDT");
21 
22  return params;
23 }
24 
26  : TimeStepper(parameters), _dt(getParam<Real>("dt"))
27 {
28 }
29 
30 void
32 {
34  mooseWarning("rejectStep() calls from TestSourceStepper");
35 }
static InputParameters validParams()
Definition: TimeStepper.C:16
static InputParameters validParams()
Base class for time stepping.
Definition: TimeStepper.h:22
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
void mooseWarning(Args &&... args) const
Emits a warning prefixed with object name and type.
void addRequiredParam(const std::string &name, const std::string &doc_string)
This method adds a parameter and documentation string to the InputParameters object that will be extr...
TestSourceStepper(const InputParameters &parameters)
virtual void rejectStep() override
This gets called when time step is rejected for all input time steppers.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
registerMooseObject("MooseTestApp", TestSourceStepper)
virtual void rejectStep()
This gets called when time step is rejected.
Definition: TimeStepper.C:185
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump...