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 "AddFVKernelAction.h" 11 : #include "FEProblem.h" 12 : #include "NonlinearSystem.h" 13 : 14 : registerMooseAction("MooseApp", AddFVKernelAction, "add_fv_kernel"); 15 : 16 : InputParameters 17 8734 : AddFVKernelAction::validParams() 18 : { 19 8734 : InputParameters params = MooseObjectAction::validParams(); 20 8734 : params.addClassDescription("Add a FVKernel object to the simulation."); 21 8734 : return params; 22 0 : } 23 : 24 8531 : AddFVKernelAction::AddFVKernelAction(const InputParameters & params) : MooseObjectAction(params) {} 25 : 26 : void 27 8399 : AddFVKernelAction::act() 28 : { 29 8399 : if (_current_task == "add_fv_kernel") 30 8399 : _problem->addFVKernel(_type, _name, _moose_object_pars); 31 8391 : }