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 87821 : DistributionInterface::validParams() 18 : { 19 87821 : InputParameters params = emptyInputParameters(); 20 87821 : return params; 21 : } 22 : 23 195474 : DistributionInterface::DistributionInterface(const MooseObject * moose_object) 24 195474 : : _dni_params(moose_object->parameters()), 25 195474 : _dni_feproblem(*_dni_params.getCheckedPointerParam<FEProblemBase *>("_fe_problem_base")), 26 195474 : _dni_moose_object_ptr(moose_object) 27 : { 28 195474 : } 29 : 30 : const Distribution & 31 0 : DistributionInterface::getDistribution(const std::string & name) const 32 : { 33 0 : DistributionName dist_name = _dni_params.get<DistributionName>(name); 34 0 : return _dni_feproblem.getDistribution(dist_name); 35 0 : } 36 : 37 : const Distribution & 38 0 : DistributionInterface::getDistributionByName(const DistributionName & name) const 39 : { 40 0 : return _dni_feproblem.getDistribution(name); 41 : }