libmesh icon indicating copy to clipboard operation
libmesh copied to clipboard

Added error when stitching fails

Open DanielYankura opened this issue 1 year ago • 7 comments

When no matching nodes are found, libmesh throws an error now

refs idaholab/moose#27758

DanielYankura avatar Feb 06 '25 22:02 DanielYankura

I like the idea, but it looks like we're interfering here with higher-level error handling in MOOSE CI.

roystgnr avatar Feb 07 '25 01:02 roystgnr

We could probably add a try/catch there to be able to add compatibility with this with a smooth transition?

roystgnr avatar Feb 07 '25 01:02 roystgnr

Job Coverage, step Generate coverage on c4f02bf wanted to post the following:

Coverage

5b27fa #4072 c4f02b
Total Total +/- New
Rate 62.51% 62.51% +0.00% 100.00%
Hits 72994 72996 +2 2
Misses 43779 43778 -1 0

Diff coverage report

Full coverage report

This comment will be updated on new commits.

moosebuild avatar Feb 07 '25 02:02 moosebuild

I would definitely need to test this before we could merge. I think there may be some situations where we rely on the current behavior of not throwing an error when nothing is stitched.

jwpeterson avatar Feb 07 '25 14:02 jwpeterson

I'll go ahead and try adding a try/catch. Also I know users often ignore warnings but if there are cases where it relies on it not throwing an error then maybe making it a warning instead might work?

DanielYankura avatar Feb 12 '25 15:02 DanielYankura

I could be talked into a warning. Not literally libmesh_warning(), but something informative to libMesh::out.

roystgnr avatar Feb 13 '25 21:02 roystgnr

Sorry this took so long, but I changed it to a warning statement (using libmesh::out). I was going to do a try/catch but I think that might still interfere with MOOSE's error handling?

DanielYankura avatar Feb 14 '25 22:02 DanielYankura