LCOV - code coverage report
Current view: top level - src/interfaces - CovarianceInterface.C (source / functions) Hit Total Coverage
Test: idaholab/moose stochastic_tools: #31405 (292dce) with base fef103 Lines: 11 14 78.6 %
Date: 2025-09-04 07:57:52 Functions: 2 3 66.7 %
Legend: Lines: hit not hit

          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 "CovarianceInterface.h"
      11             : #include "CovarianceFunctionBase.h"
      12             : 
      13             : InputParameters
      14           0 : CovarianceInterface::validParams()
      15             : {
      16           0 :   return emptyInputParameters();
      17             : }
      18             : 
      19        1244 : CovarianceInterface::CovarianceInterface(const InputParameters & parameters)
      20        1244 :   : _covar_feproblem(*parameters.get<FEProblemBase *>("_fe_problem_base"))
      21             : {
      22        1244 : }
      23             : 
      24             : CovarianceFunctionBase *
      25         463 : CovarianceInterface::getCovarianceFunctionByName(const UserObjectName & name) const
      26             : {
      27             :   std::vector<CovarianceFunctionBase *> models;
      28         463 :   _covar_feproblem.theWarehouse()
      29         463 :       .query()
      30         463 :       .condition<AttribName>(name)
      31         463 :       .condition<AttribSystem>("CovarianceFunction")
      32             :       .queryInto(models);
      33         463 :   if (models.empty())
      34           0 :     mooseError("Unable to find a CovarianceFunction object with the name '" + name + "'");
      35         463 :   return models[0];
      36         463 : }

Generated by: LCOV version 1.14