https://mooseframework.inl.gov
ElemSideNeighborLayersGeomTester.C
Go to the documentation of this file.
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 
11 #include "MooseMesh.h"
12 
13 // invalid_processor_id
14 #include "libmesh/dof_object.h"
15 
17 
20 {
22 
23  // Our base class had called out some relationship managers that we don't want for this object
25 
31  "ElementSideNeighborLayers",
33 
34  [](const InputParameters & obj_params, InputParameters & rm_params)
35  {
36  rm_params.set<unsigned short>("layers") =
37  obj_params.get<unsigned short>("element_side_neighbor_layers");
38  }
39 
40  );
41 
42  params.addRequiredParam<unsigned short>("element_side_neighbor_layers",
43  "Number of layers to ghost");
44 
45  params.addClassDescription("User object to calculate ghosted elements on a single processor or "
46  "the union across all processors.");
47  return params;
48 }
49 
51  const InputParameters & parameters)
52  : ElemSideNeighborLayersTester(parameters)
53 {
54 }
ElemSideNeighborLayersGeomTester(const InputParameters &parameters)
void clearRelationshipManagers()
Clears all currently registered RelationshipManagers.
std::vector< std::pair< R1, R2 > > get(const std::string &param1, const std::string &param2) const
Combine two vector parameters into a single vector of pairs.
registerMooseObject("MooseApp", ElemSideNeighborLayersGeomTester)
User object to show information about the ElemSideNeighborLayer object&#39;s "ghosting" behaviors...
T & set(const std::string &name, bool quiet_mode=false)
Returns a writable reference to the named parameters.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
void addRelationshipManager(const std::string &name, Moose::RelationshipManagerType rm_type, Moose::RelationshipManagerInputParameterCallback input_parameter_callback=nullptr)
Tells MOOSE about a RelationshipManager that this object needs.
void addRequiredParam(const std::string &name, const std::string &doc_string)
This method adds a parameter and documentation string to the InputParameters object that will be extr...
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump...
User object to show information about the ElemSideNeighborLayer object&#39;s "ghosting" behaviors...