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 "Distribution.h" 11 : #include "MooseRandom.h" 12 : 13 : InputParameters 14 0 : Distribution::validParams() 15 : { 16 0 : InputParameters params = MooseObject::validParams(); 17 0 : params.addRequiredParam<std::string>("type", "class/type name identifying the distribution"); 18 0 : params.registerBase("Distribution"); 19 0 : params.registerSystemAttributeName("Distribution"); 20 0 : return params; 21 0 : } 22 : 23 0 : Distribution::Distribution(const InputParameters & parameters) 24 0 : : MooseObject(parameters), PerfGraphInterface(this) 25 : { 26 0 : } 27 : 28 : Real 29 0 : Distribution::median() const 30 : { 31 0 : mooseError("The distribution '", name(), "' must override the median method."); 32 : return 0; 33 : }