Skip to content
Discussion options

You must be logged in to vote

Yes that is very likely the cause. I'd suggest declaring int_source_terms for the full domain (adding the i_vertical dimension), feeding int_source_terms(:,i_vertical,:) into get_interior_sources, and doing the interior_state update based on that after finalize_outputs with something like

self%current%interior_state = self%current%interior_state + int_source_terms * delta_t

If you further do the output in between finalize_outputs and the above state update, you'd get the nice result that state and diagnostics are in sync in output.

Replies: 10 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@FabianGrosze
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@FabianGrosze
Comment options

@jornbr
Comment options

Answer selected by FabianGrosze
Comment options

You must be logged in to vote
1 reply
@jornbr
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants