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 "ElemSideNeighborLayersGeomTester.h" 11 : #include "MooseMesh.h" 12 : 13 : // invalid_processor_id 14 : #include "libmesh/dof_object.h" 15 : 16 : registerMooseObject("MooseApp", ElemSideNeighborLayersGeomTester); 17 : 18 : InputParameters 19 15028 : ElemSideNeighborLayersGeomTester::validParams() 20 : { 21 15028 : InputParameters params = ElemSideNeighborLayersTester::validParams(); 22 : 23 : // Our base class had called out some relationship managers that we don't want for this object 24 15028 : params.clearRelationshipManagers(); 25 : 26 : /** 27 : * Reuse an existing RelationshipManager, but restrict it to only acting geometrically. 28 : * There is no new code or options in this class, just a registration change. 29 : */ 30 15028 : params.addRelationshipManager( 31 : "ElementSideNeighborLayers", 32 : Moose::RelationshipManagerType::GEOMETRIC, 33 : 34 0 : [](const InputParameters & obj_params, InputParameters & rm_params) 35 : { 36 1139 : rm_params.set<unsigned short>("layers") = 37 1139 : obj_params.get<unsigned short>("element_side_neighbor_layers"); 38 1139 : } 39 : 40 : ); 41 : 42 15028 : params.addRequiredParam<unsigned short>("element_side_neighbor_layers", 43 : "Number of layers to ghost"); 44 : 45 15028 : params.addClassDescription("User object to calculate ghosted elements on a single processor or " 46 : "the union across all processors."); 47 15028 : return params; 48 0 : } 49 : 50 376 : ElemSideNeighborLayersGeomTester::ElemSideNeighborLayersGeomTester( 51 376 : const InputParameters & parameters) 52 376 : : ElemSideNeighborLayersTester(parameters) 53 : { 54 376 : }