Skip to content
Discussion options

You must be logged in to vote

Hi! You'll need a workaround to access the (previous) value of the diagnostic. In the module that implements the diagnostic, you can register a dependency with the same name. This dependency is then implicitly coupled to the diagnostic and will provide read access to it. In the routine that updates the original diagnostic, the dependency will be equal to the diagnostic's previous value.

act_as_state_variable=.true. is typically used for more exotic functionality. It can be used by module A to create a diagnostic that look like a state variable to another module B, which then contributes source terms (or bottom/surface fluxes) to it. Module A can then retrieve those sources and do somethin…

Replies: 2 comments 2 replies

Comment options

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

Answer selected by BeatrizArellano
Comment options

You must be logged in to vote
1 reply
@BeatrizArellano
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