Repository navigation
Purpose of register_implemented_routines and when should it be used. #165
|
Hi, I have a question about diagnostics in FABM. Also, when registering a diagnostic variable, should the I would appreciate any clarification on these features. |
Replies: 1 comment 1 reply
|
Hi! That one fortunately has an easy answer - As for In practice, the typical reason to explicitly provide |
Hi! That one fortunately has an easy answer -
register_implemented_routineswas originally introduced as performance optimization. It allowed FABM to skip calls (and associated preparation of variables) to routines that were not implemented. However, as of version 3, FABM finds out itself what routines are implemented, so you will not need to callregister_implemented_routines, ever.As for
source: that is needed only if its default value is not suitable for your use case. It defaults tosource_do, that is, "the diagnostic will be computed in thedosubroutine", for diagnostic identifiers of typetype_diagnostic_variable_id, tosource_do_bottomfortype_bottom_diagnostic_variable_idand to…