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 "InitProblemAction.h" 11 : #include "FEProblem.h" 12 : 13 : registerMooseAction("MooseApp", InitProblemAction, "init_problem"); 14 : 15 : InputParameters 16 61934 : InitProblemAction::validParams() 17 : { 18 61934 : InputParameters params = Action::validParams(); 19 61934 : return params; 20 : } 21 : 22 61934 : InitProblemAction::InitProblemAction(const InputParameters & params) : Action(params) {} 23 : 24 : void 25 56104 : InitProblemAction::act() 26 : { 27 56104 : if (_problem.get()) 28 56104 : _problem->init(); 29 : else 30 0 : mooseError("Problem doesn't exist in InitProblemAction!"); 31 56104 : }