Skip to content
Discussion options

You must be logged in to vote

There is one key difference between register_state_variable and register_state_dependency: the former registers a new state variable, the latter registers a dependency on a state variable that must come from another model. If this condition is not satisfied (that is, if there is no coupling made for the state dependency in fabm.yaml), the model will not run. The variable identifier that you register with either of these two routines is the same: it can be used to retrieve the state variable value and to provide source terms.

In practice, it is also possible to couple a variable registered with register_state_variable by adding a corresponding coupling entry to fabm.yaml. In that case, mod…

Replies: 2 comments

Comment options

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