Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meshpy reports gmsh failure when warnings occur #30

Open
david-zwicker opened this issue Jul 20, 2017 · 1 comment
Open

meshpy reports gmsh failure when warnings occur #30

david-zwicker opened this issue Jul 20, 2017 · 1 comment

Comments

@david-zwicker
Copy link

The meshpy error processing is a bit too sensitive in that it simply scans for the word 'error' in the stderr of the gmsh output (https://github.com/inducer/meshpy/blob/master/meshpy/gmsh.py#L182). This is problematic if some warning occurs during the gmsh run, which typically leads to output like this:

Warning : ------------------------------
Warning : Mesh generation error summary
Warning : 6 warnings
Warning : 0 errors
Warning : Check the full log for details
Warning : ------------------------------

Clearly, there was no error, but meshpy still throws a GmshError.

@inducer
Copy link
Owner

inducer commented Jul 20, 2017

I'm open to taking a patch to introduce an option like break_on_warning=True. (i.e. defaulting to true to match current behavior) I'm not sure how one could determine whether an error or a warning occurred--I'm not too fond of parsing the gmsh output, but I suppose that could be done. Another aspect is that I've found that meshes that come out with warnings are most often pretty much unusable--so, at least in part, this behavior is there by design.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants