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 "AddBCAction.h" 11 : #include "FEProblem.h" 12 : #include "BoundaryCondition.h" 13 : 14 : registerMooseAction("MooseApp", AddBCAction, "add_bc"); 15 : 16 : InputParameters 17 76877 : AddBCAction::validParams() 18 : { 19 76877 : InputParameters params = MooseObjectAction::validParams(); 20 76877 : params.addClassDescription("Add a BoundaryCondition object to the simulation."); 21 76877 : return params; 22 0 : } 23 : 24 76661 : AddBCAction::AddBCAction(const InputParameters & params) : MooseObjectAction(params) {} 25 : 26 : void 27 74472 : AddBCAction::act() 28 : { 29 74472 : _problem->addBoundaryCondition(_type, _name, _moose_object_pars); 30 74411 : }