Can we install an older version of Oceananigans? #3078
-
Hi, I've running a 3D eddy model GPU run for a while using Oceananigans. The experiment runs perfectly but recently I accidentally uninstall all my Julia packages. When I re-install the latest version Oceananigans and re-run my experiments, I got error messages when executing initial time step. A quick questions I want to ask before I re-debug everything is: is there a way to specify the version of Oceananigans to install in Julia? Any comments would be very vey helpful. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Yes, to install, for example, 0.79.0, you would type pkg> add Oceananigans@0.79.0 You can use an environment using a I also suggest using github to store your code (which you may already do), along with the Here's some documentation about that I recommend reading: |
Beta Was this translation helpful? Give feedback.
Yes, to install, for example, 0.79.0, you would type
]
to enter package manager mode, and thenYou can use an environment using a
Project.toml
to avoid having to manually specify packages whenever you start using a new system.I also suggest using github to store your code (which you may already do), along with the
Project.toml
. That will mean you could lose your whole computer but still regenerate your code, because theProject.toml
can encode the "compatability" of your code with all the packages it uses.Here's some documentation about that I recommend reading:
https://docs.julialang.org/en/v1/stdlib/Pkg/
https://pkgdocs.julialang.org/v1/environments/