Commit 72fb8269 authored by Cody Permann's avatar Cody Permann

Report user defined dt to control subcycling

parent 5a8d645b
......@@ -22,6 +22,9 @@ protected:
virtual Real computeDT() override;
virtual void step() override;
virtual bool converged() override;
private:
Real _dt;
};
#endif //MOON_NEKTIMESTEPPER_H
......@@ -9,11 +9,13 @@ template<>
InputParameters validParams<NekTimeStepper>()
{
InputParameters params = validParams<TimeStepper>();
params.addParam<Real>("dt", 1.0, "Size of the time step");
return params;
}
NekTimeStepper::NekTimeStepper(const InputParameters & parameters) :
TimeStepper(parameters)
TimeStepper(parameters),
_dt(getParam<Real>("dt"))
{
}
......@@ -21,14 +23,14 @@ Real
NekTimeStepper::computeInitialDT()
{
// TODO: Should report information from Nek
return 1;
return _dt;
}
Real
NekTimeStepper::computeDT()
{
// TODO: Should report information from Nek
return 1;
return _dt;
}
void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment