Skip to content
Discussion options

You must be logged in to vote

A mix of FABM v1/v2 and and FABM v0 compatibility APIs won't work, as you found. To get light extinction from FABM v1 and higher, you'd do:

call model%request_variable(fabm_standard_variables%attenuation_coefficient_of_photosynthetic_radiative_flux)

before calling model%start(), and then once, after:

ext => model%get_data(model%get_interior_variable_id(fabm_standard_variables%attenuation_coefficient_of_photosynthetic_radiative_flux))

with ext being declared as a full interior array with the pointer attribute.

The first call ensures that the extinction will be computed, even if no FABM model has an interest in it, and the second retrieves a pointer to the extinction values that will be u…

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
7 replies
@janko-om
Comment options

@janko-om
Comment options

@jornbr
Comment options

@janko-om
Comment options

@jornbr
Comment options

Answer selected by janko-om
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