-
Notifications
You must be signed in to change notification settings - Fork 325
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 bug in ocn_tracer_advection_std #841
Comments
@cbegeman I agree that this is a bug as the code is currently written. It doesn't look like this particular subroutine is tested in the nightly regression suite (all tests have I'm not sure, though, if just allocating Perhaps @mark-petersen might have a better understanding of the calculations in this routine, and whether increasing the size of |
@mattdturner Thanks for taking a look. My understanding is that |
@mattdturner, @cbegeman Before I modified the mono advection routine, the vertical advection here was essentially identical, so I had planned to make the same performance mods in the std routine that I made in mono. I've been working on a version with GPU mods for both and will be making the changes as part of that, but if we want to make the changes sooner, I can speed that up or someone can copy how the vertical advection is done in the mono routine. |
@philipwjones No rush on my end. Just wanted to point it out when I came across it. Thanks! |
I think that
high_order_vert_flux
should be allocated to sizenVertLevels+1
here so that in the following lines,high_order_vert_flux(k+1)
has a reference whenmaxLevelCell = nVertLevels
. @mattdturner Do you agree?MPAS-Model/src/core_ocean/shared/mpas_ocn_tracer_advection_std.F
Lines 222 to 225 in 29a819a
The text was updated successfully, but these errors were encountered: