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 "AddVariableMappingAction.h" 11 : #include "Factory.h" 12 : #include "FEProblem.h" 13 : #include "VariableMappingBase.h" 14 : 15 : registerMooseAction("StochasticToolsApp", AddVariableMappingAction, "add_variable_mapping"); 16 : 17 : InputParameters 18 170 : AddVariableMappingAction::validParams() 19 : { 20 170 : InputParameters params = MooseObjectAction::validParams(); 21 170 : params.addClassDescription("Adds Mapping objects from a VariableMappings block."); 22 170 : return params; 23 0 : } 24 : 25 170 : AddVariableMappingAction::AddVariableMappingAction(const InputParameters & params) 26 170 : : MooseObjectAction(params) 27 : { 28 170 : } 29 : 30 : void 31 170 : AddVariableMappingAction::act() 32 : { 33 340 : _problem->addObject<VariableMappingBase>( 34 170 : _type, _name, _moose_object_pars, /* threaded = */ false); 35 170 : }