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

Improve error handling for open files for clock file and mesh file #642

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

sebastianbeyer
Copy link
Collaborator

Make a proper error message with the path where the file was expected and do proper mpi_abort.

@sebastianbeyer sebastianbeyer added the enhancement New feature or request label Oct 26, 2024
@sebastianbeyer sebastianbeyer self-assigned this Oct 26, 2024
@sebastianbeyer sebastianbeyer marked this pull request as ready for review October 30, 2024 06:54
@sebastianbeyer sebastianbeyer force-pushed the improve_error_handling_file_open branch from 78d688c to 641c52d Compare October 31, 2024 19:43
@sebastianbeyer
Copy link
Collaborator Author

What do you say, @JanStreffing ? Is it enough to check the rpart.out file, or should we add checks to every file (It would be nice to check everything, but it means a lot of additional code)?

Make a proper error message with the path where the file was
expected and do proper mpi_abort.
@sebastianbeyer sebastianbeyer force-pushed the improve_error_handling_file_open branch from 641c52d to ebe7709 Compare December 3, 2024 11:56
@trackow
Copy link
Contributor

trackow commented Dec 3, 2024

I think checking for the presence of the rpart.out file should cover a majority of issues in the IFS-FESOM context when running on different machines ;) Maybe just checking for the presence of the right distXXX folder could already be enough.

Also great to see that you check for the presence of the clock file.

@sebastianbeyer
Copy link
Collaborator Author

Hey, can we add this, @JanStreffing ?

@JanStreffing JanStreffing merged commit 01d4329 into main Dec 4, 2024
4 checks passed
@JanStreffing JanStreffing deleted the improve_error_handling_file_open branch December 4, 2024 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants