https://mooseframework.inl.gov
AddLikelihoodAction.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 "AddLikelihoodAction.h"
11 #include "Factory.h"
12 #include "FEProblem.h"
13 #include "LikelihoodFunctionBase.h"
14 
15 registerMooseAction("StochasticToolsApp", AddLikelihoodAction, "add_likelihood");
16 
19 {
21  params.addClassDescription("Adds Likelihood objects.");
22  return params;
23 }
24 
26 {
27 }
28 
29 void
31 {
32  _problem->addObject<LikelihoodFunctionBase>(
33  _type, _name, _moose_object_pars, /* threaded = */ false);
34 }
All Likelihoods should inherit from this class.
static InputParameters validParams()
static InputParameters validParams()
AddLikelihoodAction(const InputParameters &params)
const std::string _name
registerMooseAction("StochasticToolsApp", AddLikelihoodAction, "add_likelihood")
virtual void act() override
std::string _type
InputParameters _moose_object_pars
void addClassDescription(const std::string &doc_string)
std::shared_ptr< FEProblemBase > & _problem