-
Notifications
You must be signed in to change notification settings - Fork 19
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
Possible MAPL Bug with SCM Debug #1549
Comments
I'll fix this. Maybe the refactoring we did to horzij broke this. This is going through the non cubed-sphere path which well we did not have a use case for other than this since we don't run lat-lon. |
found the problem, will commit a hotfix on main here once I just do a check this doesn't affect the model (it shouldn't) |
@sanAkel, don't jump for joy too much, once I fixed this, my scm case crashed on the very first step in the turbulence code when using the the debug build. I'll open an issue in gcm just for the record so we don't forget and to have a record, but at the first glance it's beyond me what could be wrong. The release build runs (according to @mathomp4 is always did) but something is not happy with the debug build so don't know if this points to a lurky problem or something else that is benign. |
Thanks! @bena-nasa. @mathomp4 suggested I test other test cases. Would you both like me to try them? If so, if Maybe for a few of them if you could try both debug and release (wait for my MAPL bug fix). I guess the question is, is that crash endemic of the scm in general or perhaps it is just the restarts for that particular case. |
@sanAkel discovered what I think is a bug in MAPL when you run the SCM with debugging options on. Maybe it's GOCART, but I think it's more of an uncovered case in MAPL.
To wit, when you run the
arm_97jul
case, you get a traceback:The call tree from SU2G is this:
which goes to:
MAPL/base/Base/Base_Base_implementation.F90
Line 3103 in f6cf291
and then:
MAPL/base/Base/Base_Base_implementation.F90
Lines 3170 to 3178 in f6cf291
My guess is we might need a sort of "short-circuit" for single column in MAPL_GetHorzIJIndex when it goes through the lat-lon code. It's not a "standard" but I think all SCM cases sort of "hardcode" the latlon of their point in the gridname a la:
I'm guessing when MAPL makes the 1x1 grid it doesn't care...I can't see any reason why it would. But maybe we could figure out a way to pull it. Either make the SCM gridname a standard and extract from it, or have a bit of "If grid is 1x1, then we require AGCM.LATS and AGCM.LONS or something?"
I defer to @tclune, @bena-nasa and @atrayano the best way to support this.
The text was updated successfully, but these errors were encountered: