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 14951 : ElemSideNeighborLayersGeomTester::validParams() 20 : { 21 14951 : InputParameters params = ElemSideNeighborLayersTester::validParams(); 22 : 23 : // Our base class had called out some relationship managers that we don't want for this object 24 14951 : 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 14951 : params.addRelationshipManager( 31 : "ElementSideNeighborLayers", 32 : Moose::RelationshipManagerType::GEOMETRIC, 33 : 34 0 : [](const InputParameters & obj_params, InputParameters & rm_params) 35 : { 36 1024 : rm_params.set<unsigned short>("layers") = 37 1024 : obj_params.get<unsigned short>("element_side_neighbor_layers"); 38 1024 : } 39 : 40 : ); 41 : 42 14951 : params.addRequiredParam<unsigned short>("element_side_neighbor_layers", 43 : "Number of layers to ghost"); 44 : 45 14951 : params.addClassDescription("User object to calculate ghosted elements on a single processor or " 46 : "the union across all processors."); 47 14951 : return params; 48 0 : } 49 : 50 338 : ElemSideNeighborLayersGeomTester::ElemSideNeighborLayersGeomTester( 51 338 : const InputParameters & parameters) 52 338 : : ElemSideNeighborLayersTester(parameters) 53 : { 54 338 : }