https://mooseframework.inl.gov
AddCovarianceAction.C
Go to the documentation of this file.
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 
19 {
21  params.addClassDescription("Adds Covariance objects contained within "
22  "the `[Trainers]` and `[Surrogates]` input blocks.");
23  return params;
24 }
25 
27 {
28 }
29 
30 void
32 {
33  _problem->addObject<CovarianceFunctionBase>(
34  _type, _name, _moose_object_pars, /* threaded = */ false);
35 }
static InputParameters validParams()
Base class for covariance functions that are used in Gaussian Processes.
virtual void act() override
AddCovarianceAction(const InputParameters &params)
static InputParameters validParams()
const std::string _name
registerMooseAction("StochasticToolsApp", AddCovarianceAction, "add_covariance")
std::string _type
InputParameters _moose_object_pars
void addClassDescription(const std::string &doc_string)
std::shared_ptr< FEProblemBase > & _problem