You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note to self: Actually it would be nice to be able to create a performant inplace F from the user input of sources and sinks. This might require some code transformation though, so I'm not sure how I would do this.
For example, the user could provide an expression for each term, like
uptake: -1 / τ * DIP^2 / (DIP + k) * (z ≤ zₑ)
remin: κ * POP
geores: (DIPgeo - DIP) / τgeo
and then AIBECS could build an inplace and fused-loop function
functionG_DIP!(dDIP, DIP, POP, p)
@unpack τ, k, zₑ, κ, DIPgeo, τgeo = p # unpack parameters
dDIP .=@.-1/ τ * DIP^2/ (DIP + k) * (z ≤ zₑ) + κ * POP + (DIPgeo - DIP) / τgeo
end
No description provided.
The text was updated successfully, but these errors were encountered: