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

39 the return code of the sfincs model is always 0 even if the model fails #67

Conversation

Leynse
Copy link
Contributor

@Leynse Leynse commented Feb 13, 2024

No description provided.

- The -1 is now accessible out of ierr = sfincs_update loop when running through BMI I think
- However, not yet as windows exe error message, since still the program stops normally, requires more work
- Note, branch is split from current main, which had some small issues in quadtree netcdf when compiling in debug mode
@Leynse Leynse linked an issue Feb 13, 2024 that may be closed by this pull request
@Leynse Leynse marked this pull request as ready for review February 14, 2024 08:37
Copy link
Contributor

@maartenvanormondt maartenvanormondt left a comment

Choose a reason for hiding this comment

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

Does this work? At the end of sfincs_finalize ierr is set to 0. I have not tested it. How can the error code be retrieved e.g. when running sfincs from python?

@Leynse
Copy link
Contributor Author

Leynse commented Feb 29, 2024

Thanks a lot for checking and improving on this Maarten!

@Leynse Leynse merged commit 7903738 into main Feb 29, 2024
@Leynse Leynse deleted the 39-the-return-code-of-the-sfincs-model-is-always-0-even-if-the-model-fails branch February 29, 2024 10:41
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

Successfully merging this pull request may close these issues.

The return code of the SFINCS model is always 0 even if the model fails
2 participants