LCOV - code coverage report
Current view: top level - src/samplers - SamplerInterface.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 7 11 63.6 %
Date: 2025-07-17 01:28:37 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       74546 : SamplerInterface::SamplerInterface(const MooseObject * moose_object)
      22       74546 :   : _si_params(moose_object->parameters()),
      23       74546 :     _si_feproblem(*_si_params.get<FEProblemBase *>("_fe_problem_base")),
      24       74546 :     _si_tid(_si_params.have_parameter<THREAD_ID>("_tid") ? _si_params.get<THREAD_ID>("_tid") : 0)
      25             : {
      26       74546 : }
      27             : 
      28             : template <>
      29             : Sampler &
      30         306 : SamplerInterface::getSampler(const std::string & name)
      31             : {
      32         306 :   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