Sign inSign up

gbnz/mpas_containerized

By gbnz

Updated about 2 years ago

Making MPAS containerized

Image
0

192

gbnz/mpas_containerized repository overview

Making MPAS containerized

Model for Prediction Across Scales (MPAS) containerized.

Main things:
  • debian12
  • MPAS 8.2 (8.2.1) -> Atmosphere core is compiled (not OpenACC yet) in gbnz/mpas_containerized:v8.2
Extra:

Run with docker image

# 1.
docker run -it --rm -p 8889:8889 gbnz/mpas_containerized:v8.2 zsh

# 2. with X11 passed i.e. for ncview
docker run -it --rm -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v ./experiments:/workspaces/mpas_container/experiments -p 8889:8889 gbnz/mpas_containerized:v8.2 zsh

# 3. to get into running container i.e. to have second shell in it
docker exec -it <container name> zsh

add host fs access to above command as your wish

Idealized cases

Test cases are included in the image

Supercell case:
cd /workspaces/mpas_container/src/examples/idealized  
tar -xvzf supercell.tar.gz  
cd supercell
 
ln  -s /workspaces/mpas_container/src/MPAS-Model/init_atmosphere_model .  
ln  -s /workspaces/mpas_container/src/MPAS-Model/atmosphere_model . 

# with old small cpu in hand..
mpiexec -n 4 --allow-run-as-root init_atmosphere_model  
mpiexec -n 4 --allow-run-as-root atmosphere_model

conda activate ncl  
ncl supercell.ncl 

The last one will generate .pdf with the (some) results.

Jupyter lab

From withing container

cd /workspaces/mpas_container/
conda activate jupyterlab
jupyter lab --port 8889 --ip 0.0.0.0 --no-browser --allow-root

And then follow the instruction - i.e. more or less open provided URL in your browser.

Notes:

Tag summary

Content type

Image

Digest

sha256:f0c69a9eb

Size

2.5 GB

Last updated

about 2 years ago

docker pull gbnz/mpas_containerized:v8.2