Skip to content

Commit

Permalink
further streamline
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelforget committed Apr 19, 2024
1 parent f58ddab commit e35db55
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 5 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ RUN curl -fsSL https://install.julialang.org | sh -s -- --yes

RUN ${USER_HOME_DIR}/.juliaup/bin/julia --project=${mainpath} -e "import Pkg; Pkg.instantiate();"
RUN ${USER_HOME_DIR}/.juliaup/bin/julia --project=${mainpath} ${mainpath}/src/warmup.jl
RUN ${USER_HOME_DIR}/.juliaup/bin/julia --project=${mainpath} ${mainpath}/src/download_stuff.jl

ENV MPI_INC_DIR /usr/lib/x86_64-linux-gnu/openmpi/include

Expand Down
File renamed without changes.
31 changes: 27 additions & 4 deletions src/warmup.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
using ClimateModels, MITgcm, OceanStateEstimation
using Pluto, PlutoUI, PlutoSliderServer, Downloads, IJulia
#import Plots
import CairoMakie

using ClimateModels, MITgcm, OceanStateEstimation, MeshArrays
##

p0=pathof(MITgcm)
fil=joinpath(dirname(p0),"..","examples","configurations","OCCA2.toml")
MC=MITgcm_config(inputs=read_toml(fil))
Expand All @@ -12,11 +14,32 @@ build(MC)
mv(joinpath(MC,"MITgcm/mysetups/ECCOv4/build/mitgcmuv"),"mitgcmuv")
rm(pathof(MC),recursive=true)

##

tmp=ModelConfig(model=ClimateModels.RandomWalker)
setup(tmp)
launch(tmp)

notebook_url="https://raw.githubusercontent.com/gaelforget/OceanStateEstimation.jl/master/examples/ECCO/ECCO_standard_plots.jl"
path_to_notebook = Downloads.download(notebook_url)
#include(path_to_notebook)
##

using ClimateModels.Git
run(`$(git()) clone https://github.com/gaelforget/OceanStateEstimation.jl`)

MeshArrays.GRID_LLC90_download()
OceanStateEstimation.ECCOdiags_add("release2")
OceanStateEstimation.ECCOdiags_add("release4")

Downloads.download(
"https://zenodo.org/record/5784905/files/interp_coeffs_halfdeg.jld2",
joinpath(OceanStateEstimation.ScratchSpaces.ECCO,"interp_coeffs_halfdeg.jld2");
timeout=60000.0)

##

using Pkg
nb="OceanStateEstimation.jl/examples/ECCO/ECCO_standard_plots.jl"
Pluto.activate_notebook_environment(nb)
Pkg.instantiate()
include(nb)
Pkg.activate()

0 comments on commit e35db55

Please sign in to comment.