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

FV nudging module contains endrun calls without messages #375

Open
nusbaume opened this issue May 11, 2021 · 4 comments
Open

FV nudging module contains endrun calls without messages #375

nusbaume opened this issue May 11, 2021 · 4 comments
Assignees
Labels
bug Something isn't working correctly CoupledEval4 -wish list

Comments

@nusbaume
Copy link
Collaborator

A recent DiscussCESM forum post presented a situation where a user was getting confused due to the lack of any sort of abort message for an endrun call in src/dynamics/fv/metdata.F90, which is used for specified-dynamics nudging runs. Upon further examination there are several other endrun calls in this module that are also missing any sort of error message.

Thus to avoid user confusion in the future, it would be good to add actual error messages to the endrun calls in that module.

@nusbaume nusbaume added the bug Something isn't working correctly label May 11, 2021
@cacraigucar
Copy link
Collaborator

@nusbaume - I am looking at this change, and the endrun commands without any message that I am seeing all have a write to iulog right before them. Looking at the forum post information, the error message was in the atm.log file. Since the log messages are multi-line messages in these cases, would a generic call endrun(subname // ":: ERROR - check atm.log for error message) suffice? @gold2718 - do you have any thoughts?

@nusbaume
Copy link
Collaborator Author

Hi @cacraigucar , I believe the "best" solution would be to create a new string variable, and then have those log messages write to that variable, which can then be sent to both iulog and the endrun call.

However, if you are trying to keep the code modifications to a minimum (and since the FV dycore won't be the workhorse dycore in CAM7) then I am also fine to just have the endrun point the user to the atm log file. Your call!

@cacraigucar
Copy link
Collaborator

@nusbaume - Since my misc tag contains over a dozen issues, I am keeping edits to a minimum. Unless @gold2718 vetoes it, I am going to just edit the endrun as I suggested. It's not perfect, but I believe it is a good compromise.

@gold2718
Copy link
Collaborator

I would veto it but I think we will also be getting new nudging code soon so we can let it ride this time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly CoupledEval4 -wish list
Projects
Status: To Do
Development

No branches or pull requests

4 participants