Skip to content
Discussion options

You must be logged in to vote

To achieve this, you'd register an additional dependency to read the value of the diagnostic. That dependency then needs to be coupled to the diagnostic. That coupling can be done explicitly in code, but as it is a recurrent pattern, you can achieve the same implicitly by registering your dependency with the same name as the diagnostic. For instance, in initialize:

call self%register_dependency(self%id_zopt_old, 'result', '','result')

And then in do_column:

_GET_HORIZONTAL_ (self%id_zopt_old, z_opt_old)

This is described, albeit in very compact fashion, at the very end of https://github.com/fabm-model/fabm/wiki/Developing-a-new-biogeochemical-model#diagnostic-variables.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by platipodium
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
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