Skip to content

Commit

Permalink
Replaced MooseNeighborPointLayers with ElementPointNeighborLayers whe…
Browse files Browse the repository at this point in the history
…rever possible

closes #24573
  • Loading branch information
brandall25 committed Jun 7, 2023
1 parent eb70253 commit c5e35de
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions framework/src/actions/AdaptivityAction.C
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ AdaptivityAction::act()

else if (_current_task == "add_geometric_rm")
{
auto rm_params = _factory.getValidParams("MooseGhostPointNeighbors");
auto rm_params = _factory.getValidParams("ElementPointNeighborLayers");

rm_params.set<std::string>("for_whom") = "Adaptivity";
rm_params.set<MooseMesh *>("mesh") = _mesh.get();
Expand All @@ -133,15 +133,15 @@ AdaptivityAction::act()
if (rm_params.areAllRequiredParamsValid())
{
auto rm_obj = _factory.create<RelationshipManager>(
"MooseGhostPointNeighbors", "adaptivity_geometric_ghosting", rm_params);
"ElementPointNeighborLayers", "adaptivity_geometric_ghosting", rm_params);

// Delete the resources created on behalf of the RM if it ends up not being added to the
// App.
if (!_app.addRelationshipManager(rm_obj))
_factory.releaseSharedObjects(*rm_obj);
}
else
mooseError("Invalid initialization of MooseGhostPointNeighbors");
mooseError("Invalid initialization of ElementPointNeighborLayers");
}

else if (_current_task == "setup_adaptivity")
Expand Down
6 changes: 3 additions & 3 deletions framework/src/actions/SetAdaptivityOptionsAction.C
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ SetAdaptivityOptionsAction::act()

else if (_current_task == "add_geometric_rm")
{
auto rm_params = _factory.getValidParams("MooseGhostPointNeighbors");
auto rm_params = _factory.getValidParams("ElementPointNeighborLayers");

rm_params.set<std::string>("for_whom") = "Adaptivity";
rm_params.set<MooseMesh *>("mesh") = _mesh.get();
Expand All @@ -106,15 +106,15 @@ SetAdaptivityOptionsAction::act()
if (rm_params.areAllRequiredParamsValid())
{
auto rm_obj = _factory.create<RelationshipManager>(
"MooseGhostPointNeighbors", "adaptivity_geometric_ghosting", rm_params);
"ElementPointNeighborLayers", "adaptivity_geometric_ghosting", rm_params);

// Delete the resources created on behalf of the RM if it ends up not being added to the
// App.
if (!_app.addRelationshipManager(rm_obj))
_factory.releaseSharedObjects(*rm_obj);
}
else
mooseError("Invalid initialization of MooseGhostPointNeighbors");
mooseError("Invalid initialization of ElementPointNeighborLayers");
}

else if (_current_task == "set_adaptivity_options")
Expand Down
2 changes: 1 addition & 1 deletion framework/src/outputs/Exodus.C
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Exodus::validParams()
params.addParam<bool>("write_hdf5", false, "Enables HDF5 output format for Exodus files.");

// Need a layer of geometric ghosting for mesh serialization
params.addRelationshipManager("MooseGhostPointNeighbors",
params.addRelationshipManager("ElementPointNeighborLayers",
Moose::RelationshipManagerType::GEOMETRIC);

// Return the InputParameters
Expand Down
2 changes: 1 addition & 1 deletion framework/src/outputs/GMVOutput.C
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ GMVOutput::validParams()
params.addClassDescription("Object for outputting data in the GMV format");

// Need a layer of geometric ghosting for mesh serialization
params.addRelationshipManager("MooseGhostPointNeighbors",
params.addRelationshipManager("ElementPointNeighborLayers",
Moose::RelationshipManagerType::GEOMETRIC);

// Return the InputParameters
Expand Down
2 changes: 1 addition & 1 deletion framework/src/outputs/Tecplot.C
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Tecplot::validParams()
"If true, append to an existing ASCII file rather than creating a new file each time");

// Need a layer of geometric ghosting for mesh serialization
params.addRelationshipManager("MooseGhostPointNeighbors",
params.addRelationshipManager("ElementPointNeighborLayers",
Moose::RelationshipManagerType::GEOMETRIC);

// Add description for the Tecplot class
Expand Down

0 comments on commit c5e35de

Please sign in to comment.