https://mooseframework.inl.gov
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
LikelihoodInterface Class Reference

#include <LikelihoodInterface.h>

Inheritance diagram for LikelihoodInterface:
[legend]

Public Member Functions

 LikelihoodInterface (const InputParameters &parameters)
 

Static Public Member Functions

static InputParameters validParams ()
 

Protected Member Functions

LikelihoodFunctionBasegetLikelihoodFunctionByName (const UserObjectName &name) const
 Lookup a LikelihoodFunction object by name and return pointer. More...
 

Private Attributes

FEProblemBase_likelihood_feproblem
 Reference to FEProblemBase instance. More...
 

Detailed Description

Definition at line 16 of file LikelihoodInterface.h.

Constructor & Destructor Documentation

◆ LikelihoodInterface()

LikelihoodInterface::LikelihoodInterface ( const InputParameters parameters)

Definition at line 18 of file LikelihoodInterface.C.

19  : _likelihood_feproblem(*parameters.get<FEProblemBase *>("_fe_problem_base"))
20 {
21 }
std::vector< std::pair< R1, R2 > > get(const std::string &param1, const std::string &param2) const
FEProblemBase & _likelihood_feproblem
Reference to FEProblemBase instance.

Member Function Documentation

◆ getLikelihoodFunctionByName()

LikelihoodFunctionBase * LikelihoodInterface::getLikelihoodFunctionByName ( const UserObjectName &  name) const
protected

Lookup a LikelihoodFunction object by name and return pointer.

Definition at line 24 of file LikelihoodInterface.C.

Referenced by PMCMCDecision::PMCMCDecision(), and TestLikelihood::TestLikelihood().

25 {
26  std::vector<LikelihoodFunctionBase *> models;
28  .query()
29  .condition<AttribName>(name)
30  .condition<AttribSystem>("LikelihoodFunctionBase")
31  .queryInto(models);
32 
33  if (models.empty())
34  mooseError("Unable to find a LikelihoodFunction object with the name '" + name + "'");
35  return models[0];
36 }
void mooseError(Args &&... args)
FEProblemBase & _likelihood_feproblem
Reference to FEProblemBase instance.
TheWarehouse & theWarehouse() const
const std::string name
Definition: Setup.h:20
Query query()

◆ validParams()

InputParameters LikelihoodInterface::validParams ( )
static

Definition at line 13 of file LikelihoodInterface.C.

Referenced by TestLikelihood::validParams(), and PMCMCDecision::validParams().

14 {
15  return emptyInputParameters();
16 }
InputParameters emptyInputParameters()

Member Data Documentation

◆ _likelihood_feproblem

FEProblemBase& LikelihoodInterface::_likelihood_feproblem
private

Reference to FEProblemBase instance.

Definition at line 29 of file LikelihoodInterface.h.

Referenced by getLikelihoodFunctionByName().


The documentation for this class was generated from the following files: