-
Notifications
You must be signed in to change notification settings - Fork 345
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
ParmParse:addFile
: User-Friendly Error
#4156
ParmParse:addFile
: User-Friendly Error
#4156
Conversation
If a file added via `ParmParse:addFile` does not exist, we did not yet receive a user-friendly error message. This fixes this in a way that does not hammer the file system from all MPI ranks.
8f76989
to
41d0284
Compare
I thought it's going to say something like Anyway there is a function called |
So it could just
|
Thanks! Yes the error message I got so far looks not as clean as it could be. If we do the check & abort inside an |
To prevent other errors later, a barrier should be enough. |
There is already a barrier after this in reading and bcast the file, which also produce |
My point is the fewer lines of code, the better, unless the code is hard to read. |
0e2b8cb
to
058838a
Compare
Summary
If a file added via
ParmParse:addFile
does not exist, we did not yet receive a user-friendly error message. This fixes this in a way that does not hammer the file system from all MPI ranks.Additional background
Follow-up to #2842 #2936 #3440
X-ref: ECP-WarpX/WarpX#5283 ECP-WarpX/impactx#704
Checklist
The proposed changes: