get salinity FABM standard variable and if needed by FABM allocate memory
subroutine link_downwelling_photosynthetic_radiative_flux() !! get salinity FABM standard variable and if needed by FABM !! allocate memory integer rc ! status variable id_downwelling_photosynthetic_radiative_flux = & model%get_interior_variable_id( & fabm_standard_variables% & downwelling_photosynthetic_radiative_flux) if (model%variable_needs_values( & id_downwelling_photosynthetic_radiative_flux)) then allocate( & downwelling_photosynthetic_radiative_flux(imt,km,jmt), & stat=rc) if (rc /= 0) stop 'link_salinity(): & Error allocating & (downwelling_photosynthetic_radiative_flux)' downwelling_photosynthetic_radiative_flux = 0._rke call model%link_interior_data( & id_downwelling_photosynthetic_radiative_flux, & downwelling_photosynthetic_radiative_flux) end if end subroutine link_downwelling_photosynthetic_radiative_flux