Mercurial > repos > public > sbplib_julia
diff src/Grids/grid.jl @ 1528:d641798539c2
Update notes on changes to `eval_on` and multiblock grids
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 10 Apr 2024 09:01:54 +0200 |
parents | 2fa325f08b66 |
children | 9113f437431d 611ae2308aa1 |
line wrap: on
line diff
--- a/src/Grids/grid.jl Tue Apr 09 07:48:20 2024 +0200 +++ b/src/Grids/grid.jl Wed Apr 10 09:01:54 2024 +0200 @@ -141,6 +141,8 @@ if hasmethod(f, (Any,)) return LazyTensors.LazyFunctionArray((I...)->f(g[I...]), size(g)) else + # TBD This branch can be removed if we accept the trade off that we define f with the syntax f((x,y)) instead if we don't want to handle the vector in the body of f. (Add an example in the docs) + # Also see Notes.md return LazyTensors.LazyFunctionArray((I...)->f(g[I...]...), size(g)) end end