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 "AddCovarianceAction.h" 11 : #include "Factory.h" 12 : #include "FEProblem.h" 13 : #include "CovarianceFunctionBase.h" 14 : 15 : registerMooseAction("StochasticToolsApp", AddCovarianceAction, "add_covariance"); 16 : 17 : InputParameters 18 416 : AddCovarianceAction::validParams() 19 : { 20 416 : InputParameters params = MooseObjectAction::validParams(); 21 416 : params.addClassDescription("Adds Covariance objects contained within " 22 : "the `[Trainers]` and `[Surrogates]` input blocks."); 23 416 : return params; 24 0 : } 25 : 26 416 : AddCovarianceAction::AddCovarianceAction(const InputParameters & params) : MooseObjectAction(params) 27 : { 28 416 : } 29 : 30 : void 31 416 : AddCovarianceAction::act() 32 : { 33 832 : _problem->addObject<CovarianceFunctionBase>( 34 416 : _type, _name, _moose_object_pars, /* threaded = */ false); 35 416 : }