https://mooseframework.inl.gov
CovarianceInterface.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 "CovarianceInterface.h"
11 #include "CovarianceFunctionBase.h"
12 
15 {
16  return emptyInputParameters();
17 }
18 
20  : _covar_feproblem(*parameters.get<FEProblemBase *>("_fe_problem_base"))
21 {
22 }
23 
26 {
27  std::vector<CovarianceFunctionBase *> models;
29  .query()
30  .condition<AttribName>(name)
31  .condition<AttribSystem>("CovarianceFunction")
32  .queryInto(models);
33  if (models.empty())
34  mooseError("Unable to find a CovarianceFunction object with the name '" + name + "'");
35  return models[0];
36 }
void mooseError(Args &&... args)
Base class for covariance functions that are used in Gaussian Processes.
InputParameters emptyInputParameters()
TheWarehouse & theWarehouse() const
const std::string name
Definition: Setup.h:20
Query query()
static InputParameters validParams()
CovarianceInterface(const InputParameters &parameters)
const Elem & get(const ElemType type_in)
FEProblemBase & _covar_feproblem
Reference to FEProblemBase instance.
CovarianceFunctionBase * getCovarianceFunctionByName(const UserObjectName &name) const
Lookup a CovarianceFunction object by name and return pointer.