ClimaLand.jl icon indicating copy to clipboard operation
ClimaLand.jl copied to clipboard

store canopy turbulent fluxes in cache

Open juliasloan25 opened this issue 5 months ago • 0 comments

Is your feature request related to a problem? Please describe. Currently, when we update the canopy boundary fluxes, we allocate a field of tuples to store the result of canopy_turbulent_fluxes, then unpack each of the tuple entries to store them individually in p (here).

It would be simpler to instead store the whole field of tuples directly in the cache. We will still be able to access the individual values, but can skip some intermediate copying and allocations.

See original suggestion here https://github.com/CliMA/ClimaLand.jl/pull/675/files#r1731979646

juliasloan25 avatar Sep 21 '24 00:09 juliasloan25