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
Caused by @eval. Note that @eval uses the current module and not the module the user is calling this function from.
This means we are trying to modify the Oceananigans after it has already been closed. This is imcompatible with precompilation since we are unable to track and restore this modification.
My intuition is that you probably just want a dictionary for these kind of globals, maybe even within the model?
Instead of using global variables.
@simone-silvestri are you sure it's a good idea to use OceanScalingTests for this purpose? It might be better to put together something longer term in ClimaOcean
Trying to use OceanScalingTest.jl from @simone-silvestri as a benchmark for TTFTS (Time-To-First-Time-Step) I came across this delightful error:
Caused by
@eval
. Note that@eval
uses the current module and not the module the user is calling this function from.This means we are trying to modify the Oceananigans after it has already been closed. This is imcompatible with precompilation since we are unable to track and restore this modification.
My intuition is that you probably just want a dictionary for these kind of globals, maybe even within the model?
Instead of using global variables.
Oceananigans.jl/src/Grids/latitude_longitude_grid.jl
Lines 554 to 555 in 00f028b
The use-case is shown in simone-silvestri/OceanScalingTests.jl#8 where one wants to use
PrecompileTools
to cache important functions.The text was updated successfully, but these errors were encountered: