Line data Source code
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 "TimestepSize.h" 11 : #include "FEProblem.h" 12 : 13 : registerMooseObject("MooseApp", TimestepSize); 14 : 15 : InputParameters 16 15185 : TimestepSize::validParams() 17 : { 18 15185 : InputParameters params = GeneralPostprocessor::validParams(); 19 15185 : params.addClassDescription("Reports the timestep size"); 20 : 21 : // Not supported 22 15185 : params.suppressParameter<bool>("use_displaced_mesh"); 23 15185 : return params; 24 0 : } 25 : 26 452 : TimestepSize::TimestepSize(const InputParameters & parameters) 27 452 : : GeneralPostprocessor(parameters), _feproblem(dynamic_cast<FEProblemBase &>(_subproblem)) 28 : { 29 452 : } 30 : 31 : Real 32 5846 : TimestepSize::getValue() const 33 : { 34 5846 : return _feproblem.dt(); 35 : }