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

Fix 3 hourly frequency update in go-cart to allow start/stop regression in less than 3 hour chances #224

Merged
merged 6 commits into from
May 12, 2023

Conversation

bena-nasa
Copy link
Contributor

@bena-nasa bena-nasa commented Apr 5, 2023

fixes #146

This fixes a long standing issue that one can not start and stop the model in anything less than 3 hour increments to test start/stop regression because of GOCART

I will not rehash why this occurring other than to say this is unacceptable. If you look in the issue you will see all the details. The one thing I had to do was remove ESFM alarms, the whole problem was that an alarm was made relative to the model start time which just can not be. But the problem is if the ESMF Alarm is created correctly, say at 0z of the day so that no matter when you start you get the same behavior, it does not work right as there are fundamental bugs in ESMF alarms. ESMF is aware of this and will fix it some day, but until then we must avoid using them. In it's place I made a simple function that says is my time some frequency from 0z during the day.

This is zero-diff in my test and allows one to do start/stop regression at less than 3 hour increments which is very, very useful for debugging when you need it and multiple people have wasted time doing regression tests and were not aware of this "bug". Plus this what was coded was fundamentally not right.

Note I made the same function in two routines as I did not see any common place in GOCART2G for helper procedures such as this to go, although if there is, or we should invent one, I can do that.

@bena-nasa bena-nasa added 0 diff The changes in this pull request have verified to be zero-diff with the target branch. bug Something isn't working enhancement New feature or request labels Apr 5, 2023
@bena-nasa bena-nasa requested a review from a team as a code owner April 5, 2023 18:33
@bena-nasa bena-nasa requested a review from amdasilva April 5, 2023 18:33
amdasilva
amdasilva previously approved these changes May 12, 2023
Copy link
Collaborator

@amdasilva amdasilva left a comment

Choose a reason for hiding this comment

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

Looks good.

@amdasilva amdasilva merged commit ee78ef7 into develop May 12, 2023
@amdasilva amdasilva deleted the feature/bmauer/fix_gocart_regression branch May 12, 2023 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 diff The changes in this pull request have verified to be zero-diff with the target branch. bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants