Skip to content

Commit

Permalink
Merge pull request #26614 from GiudGiud/PR_parsed_prepare
Browse files Browse the repository at this point in the history
Accurately retrieve the mesh dimension
  • Loading branch information
GiudGiud authored Jan 31, 2024
2 parents f919a55 + 989b7ae commit 9e71a48
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion framework/src/meshgenerators/AdvancedExtruderGenerator.C
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ AdvancedExtruderGenerator::generate()
mesh->add_elem_integer(id_names[i]);
}

// retreive subdomain/sideset/nodeset name maps
// retrieve subdomain/sideset/nodeset name maps
const auto & input_subdomain_map = _input->get_subdomain_name_map();
const auto & input_sideset_map = _input->get_boundary_info().get_sideset_name_map();
const auto & input_nodeset_map = _input->get_boundary_info().get_nodeset_name_map();
Expand Down
5 changes: 4 additions & 1 deletion framework/src/meshgenerators/SideSetsGeneratorBase.C
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ SideSetsGeneratorBase::setup(MeshBase & mesh)
{
mooseAssert(_fe_face == nullptr, "FE Face has already been initialized");

unsigned int dim = mesh.mesh_dimension();
// To know the dimension of the mesh
if (!mesh.is_prepared())
mesh.prepare_for_use();
const auto dim = mesh.mesh_dimension();

// Setup the FE Object so we can calculate normals
FEType fe_type(Utility::string_to_enum<Order>("CONSTANT"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
file = square.e
[]

# Mesh Modifiers
# Mesh Generators
# If no dependencies are defined, the order of execution is not defined (based on pointer locations) so
# this test case has several dependencies to minimize the chance of getting lucky when things aren't defined properly.
# Rotations along different axes must occur in a defined order to end up at the right orientation at the end.
Expand Down

0 comments on commit 9e71a48

Please sign in to comment.