Replies: 2 comments 9 replies
-
Maybe this is a bug for averaging multiple terms. What happens if you save each term with a different output writer? |
Beta Was this translation helpful? Give feedback.
9 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I'm hoping to compute a temporal average of a tracer budget for my simulation. I would like to compute the value of each of the terms on the right of the following budget
for every grid cell in the simulation.
To do this, I wrote the following function which takes the current simulation as input and adds an output writer that saves the fields of interest. I am using a HydrostaticFreeSurfaceModel and lifted code from its internals in an effort to recompute the fields exactly.
However, the code above only accurately saves the div_Uc term. The other terms ∇_dot_qᶜ, immersed_∇_dot_qᶜ and forcing are all zero. My model has both an explicit vertical diffusivity and a tracer forcing at the surface, so I expect ∇_dot_qᶜ and Fc to be nonzero. I'm not sure what could be different about the div_Uc term compared to the others, so I'm lost at the moment.
Any help would be greatly appreciated, thank you!
Beta Was this translation helpful? Give feedback.
All reactions