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 "BoundaryRestrictableRequired.h" 11 : 12 : #include "InputParameters.h" 13 : 14 : InputParameters 15 2781362 : BoundaryRestrictableRequired::validParams() 16 : { 17 : 18 : // Create instance of InputParameters 19 2781362 : InputParameters params = emptyInputParameters(); 20 : 21 : // Create user-facing 'boundary' input for restricting inheriting object to boundaries 22 2781362 : params.addRequiredParam<std::vector<BoundaryName>>( 23 : "boundary", "The list of boundary IDs from the mesh where this object applies"); 24 : 25 : // A parameter for disabling error message for objects restrictable by boundary and block, 26 : // if the parameter is valid it was already set so don't do anything 27 2781362 : if (!params.isParamValid("_dual_restrictable")) 28 2781362 : params.addPrivateParam<bool>("_dual_restrictable", false); 29 : 30 2781362 : return params; 31 0 : } 32 : 33 92090 : BoundaryRestrictableRequired::BoundaryRestrictableRequired(const MooseObject * moose_object, 34 92090 : bool nodal) 35 92090 : : BoundaryRestrictable(moose_object, nodal) 36 : { 37 92081 : }