Select Git revision
run-help 1.42 KiB
Singularity/Apptainer container
(c) Department of Meteorology and Geophysics
University of Vienna
interactive shell
> singularity shell image.sif
> ./image.sif
run a command inside the container
> ./image.sif [cmd] [args]
bind special directories
> export SINGULARITY_BIND=/this/is/not/a/typical/linux/path
> ./image.sif ls /this/is/not/a/typical/linux/path
development using includes and libraries from inside the container
> ./image.sif gfortran -I\$INCLUDE -L\$LIBRARY -o test.x test.f90
Directory not found?
As a defaut singularity only mounts your home into the container. So you need access to other directories inside the container:
> export SINGULARITY_BIND="/path1,/path2"
> ./image.sif
WRF Simulations - Example
default run files are located in /wrf/run
executables are located in /wrf/bin
Default simulation of the container (still requires input), will do
1. It will copy /wrf/run files to the local directory (.)
2. No local files will be overwritten (e.g. namelists), just missing files.
3. Execute real.exe, run:
> ./image.sif real.exe
> ./image.sif wrf.exe
Using OpenMPI (requires an openmpi version on the host system)
> mpirun -np 8 ./image.sif real.exe
Manually copy run files to current directory
> ./image.sif init
Compilation log files are located in /wrf
> ./image.sif zcat /wrf/compile_wrf_arw_opt34.1.log.gz | less
Ask for help: it.img-wien@univie.ac.at
Gitlab: https://gitlab.phaidra.org/imgw/singularity