-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make Ref pass by-reference #267
Comments
Hi @maleadt, I've come across an issue similar to CliMA/Oceananigans.jl#746 while I've been trying to build a biogeochemical model on top of Oceananigans. I was wondering if you had any updated advice on solving the issue or if the above suggestion would now work as a workaround? Thanks, |
Solving which issue? If you want pass-by-reference behavior, use an array instead of a Ref for now. |
Sorry basically my issue is just trying to pass a massive parameter like in the Oceananigans issue so I think pass by reference behaviour is what I'm after. How do you mean to use an array? |
Like the example here, use a single-element array. |
I see, thank you |
Could be useful to work around parameter state space size restrictions like CliMA/Oceananigans.jl#746. But might pessimize Broadcast operations where Ref is commonly used.
The text was updated successfully, but these errors were encountered: