-
Notifications
You must be signed in to change notification settings - Fork 14
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
SU_Volcanic: file path and protection for missing file #294
Conversation
Label error. Requires at least 1 of: 0 diff, 0 diff trivial, Non 0-diff, 0 diff structural, 0-diff trivial, Not 0-diff, 0-diff, automatic, 0-diff uncoupled. Found: |
Label error. Requires at least 1 of: 0 diff, 0 diff trivial, Non 0-diff, 0 diff structural, 0-diff trivial, Not 0-diff, 0-diff, automatic, 0-diff uncoupled. Found: Refactoring |
Label error. Requires at least 1 of: 0 diff, 0 diff trivial, Non 0-diff, 0 diff structural, 0-diff trivial, Not 0-diff, 0-diff, automatic, 0-diff uncoupled. Found: Refactoring, bugfix |
Label error. Requires at least 1 of: 0 diff, 0 diff trivial, Non 0-diff, 0 diff structural, 0-diff trivial, Not 0-diff, 0-diff, automatic, 0-diff uncoupled. Found: Refactoring, bugfix |
Label error. Requires at least 1 of: 0 diff, 0 diff trivial, Non 0-diff, 0 diff structural, 0-diff trivial, Not 0-diff, 0-diff, automatic, 0-diff uncoupled. Found: Refactoring |
@jrjoshi1 I don't think we can do this. Your change does stop the model:
but we don't want that. We just want to model to handle a missing date gracefully. For example, your code means the model cannot run save on 19 days in the year 2000. I think we just don't need the |
@mathomp4 I anticipated that concern! Without the 'Else and stop,' the model might continue running, leading users to believe that all volcanic files were utilized for the simulation period, while some files, like those for 2000, may not be included. If we're confident that no files are/(will be) missing for any year except 2000, we could consider removing the 'Else/stop' part; however, users should still be aware of the issue. Just my thoughts! |
@mathomp4 I think I see your point now, and I think we should remove the 'else/stop' part. The user will need to determine for themselves which files their experiment used.. Unless there are any other opinions, I’ll go ahead and make that change tomorrow. Thanks. |
This seems to work for me. I'll approve since it's it is a pretty important bugfix. |
Degassing file path is corrected. Additionally, a safeguard has been implemented to halt model execution if the specified volcanic file does not exist for the requested date.