LCOV - code coverage report
Current view: top level - src/samplers - SamplerInterface.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 419b9d Lines: 7 11 63.6 %
Date: 2025-08-08 20:01:16 Functions: 2 4 50.0 %
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 "SamplerInterface.h"
      11             : #include "Sampler.h"
      12             : #include "SubProblem.h"
      13             : #include "MooseTypes.h"
      14             : 
      15             : InputParameters
      16           0 : SamplerInterface::validParams()
      17             : {
      18           0 :   return emptyInputParameters();
      19             : }
      20             : 
      21       81444 : SamplerInterface::SamplerInterface(const MooseObject * moose_object)
      22       81444 :   : _si_params(moose_object->parameters()),
      23       81444 :     _si_feproblem(*_si_params.get<FEProblemBase *>("_fe_problem_base")),
      24       81444 :     _si_tid(_si_params.have_parameter<THREAD_ID>("_tid") ? _si_params.get<THREAD_ID>("_tid") : 0)
      25             : {
      26       81444 : }
      27             : 
      28             : template <>
      29             : Sampler &
      30         342 : SamplerInterface::getSampler(const std::string & name)
      31             : {
      32         342 :   return _si_feproblem.getSampler(_si_params.get<SamplerName>(name));
      33             : }
      34             : 
      35             : template <>
      36             : Sampler &
      37           0 : SamplerInterface::getSamplerByName(const SamplerName & name)
      38             : {
      39           0 :   return _si_feproblem.getSampler(name, _si_tid);
      40             : }

Generated by: LCOV version 1.14