Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions framework/mesh/mesh_continuum/mesh_continuum.cc
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,13 @@ MeshContinuum::MakeGridFaceHistogram(double master_tolerance, double slave_toler

std::stable_sort(face_size_histogram.begin(), face_size_histogram.end());

if (face_size_histogram.empty())
{
log.LogAllWarning() << "MeshContinuum::MakeGridFaceHistogram called on mesh "
"with no faces.";
return std::make_shared<GridFaceHistogram>(face_categories_list);
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want the shortcut path for the case when face_size_histogram, you could even move this before the stable_sort...

It would be more correcter :-)

// Determine total face dofs
size_t total_face_dofs_count = 0;
for (auto face_size : face_size_histogram)
Expand Down