LCOV - code coverage report
Current view: top level - src/distributions - DistributionInterface.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 6f668f Lines: 14 20 70.0 %
Date: 2025-09-22 20:01:15 Functions: 3 5 60.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 "DistributionInterface.h"
      11             : #include "Distribution.h"
      12             : #include "SubProblem.h"
      13             : #include "MooseTypes.h"
      14             : #include "FEProblemBase.h"
      15             : 
      16             : InputParameters
      17       90824 : DistributionInterface::validParams()
      18             : {
      19       90824 :   InputParameters params = emptyInputParameters();
      20       90824 :   return params;
      21             : }
      22             : 
      23      218554 : DistributionInterface::DistributionInterface(const MooseObject * moose_object)
      24      218554 :   : _dni_params(moose_object->parameters()),
      25      874216 :     _dni_feproblem(*_dni_params.getCheckedPointerParam<FEProblemBase *>("_fe_problem_base")),
      26      218554 :     _dni_moose_object_ptr(moose_object)
      27             : {
      28      218554 : }
      29             : 
      30             : #ifdef MOOSE_KOKKOS_ENABLED
      31       36803 : DistributionInterface::DistributionInterface(const DistributionInterface & object,
      32       36803 :                                              const Moose::Kokkos::FunctorCopy &)
      33       36803 :   : _dni_params(object._dni_params),
      34       36803 :     _dni_feproblem(object._dni_feproblem),
      35       36803 :     _dni_moose_object_ptr(object._dni_moose_object_ptr)
      36             : {
      37       36803 : }
      38             : #endif
      39             : 
      40             : const Distribution &
      41           0 : DistributionInterface::getDistribution(const std::string & name) const
      42             : {
      43           0 :   DistributionName dist_name = _dni_params.get<DistributionName>(name);
      44           0 :   return _dni_feproblem.getDistribution(dist_name);
      45           0 : }
      46             : 
      47             : const Distribution &
      48           0 : DistributionInterface::getDistributionByName(const DistributionName & name) const
      49             : {
      50           0 :   return _dni_feproblem.getDistribution(name);
      51             : }

Generated by: LCOV version 1.14