-
Notifications
You must be signed in to change notification settings - Fork 22
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
Calc_analysis fix for delp increment read to allow C1152 cycling (#56) #57
Calc_analysis fix for delp increment read to allow C1152 cycling (#56) #57
Conversation
Tagging @CoryMartin-NOAA for awareness |
@CatherineThomas-NOAA , I ran 20211221 06Z gdas_analcalc using g-w CI C96_atm3DVar. The first run used the original code. The second run used the modified code from this PR. With the original code the minval and maxval of array
Given this, the modified code should have
... though this looks weird. I have not yet looked at the source code for What did your tests find? |
oh no, I pulled the merge trigger too quickly, sorry about that and thanks @RussTreadon-NOAA for testing more thoroughly |
Looking more closely at this, why did the job fail at 1152? is it running out of memory? other reasons? |
Sorry I should have marked this as draft. This was part of my frantic push to get what I needed off of WCOSS2 before it went down for the week. I did not do any additional testing other than C1152 and that test was also fraught with other issues, so I did not take a good look at things science-wise. It might be memory related but I'm not sure. It didn't give a descriptive error initially:
I added print statements and found that most pe's died during the read_vardata call, but some of them made it through. Since I noticed that the other read_vardata calls had the slices, I tried adding them and the job plus the next few cycles succeeded. I wasn't really sure if this was the right thing to do or if there was another reason why delp_inc wasn't read this way, so that's why I pinged @CoryMartin-NOAA, but I should have been more explicit. What do you think @CoryMartin-NOAA? |
I think what we need to do is something like this (if it's memory related):
As I believe the increment is only the lowest layers' delp increment scaled by the bk value differences. |
@CoryMartin-NOAA 's suggestion works ... need to declare and deallocate |
Thanks @CoryMartin-NOAA and @RussTreadon-NOAA. Should the fix go into PR #58? |
Yea, let's close the revert and open a 'bugfix' branch/PR? |
When running calc_analysis for C1152, the job fails in the read of the delp increment:
This read has a different format than the other 3d increment reads:
Adding
nslice=k, slicedim=3
to the delp_inc read along with a do loop over k allows the job to succeed.This fix was previously tested for 3 full cycles on WCOSS2 for a C1152/C384 ATM-only experiment.