Skip to content

Commit

Permalink
Add docu
Browse files Browse the repository at this point in the history
  • Loading branch information
sebwolf-de committed May 8, 2023
1 parent 0b08de2 commit 3de2895
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 20 deletions.
33 changes: 33 additions & 0 deletions frontera.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# How to run as singularity container on frontera?

Copy `singularity.def` to your home directory on frontera.
Then execute:

```
module load tacc-apptainer
singularity pull -F docker://seissol/training:latest
singularity build -f my-training.sif singularity.def
singularity run my-training.sif
```

You can abort the jupyter lab with Ctrl-C, confirm with `y`.
Now you should see a directory `seissol-training`.
This folder should contain four directories for different scenarios.
To run the TPV13 scenario, you should:

```
cd seissol-training/tpv13
mpirun singularity run ~/my-training.sif gmsh -3 tpv13_training.geo
mpirun singularity run ~/my-training.sif pumgen -s msh2 tpv13_training.msh
OMP_NUM_THREADS=56 mpirun singularity run ~/my-training.md seissol parameters.par
```

You can directly visualize the results on Frontera:

1. Open a VNC connection to Frontera
2. `module load swr qt5 ospray paraview`
3. `swr -p 1 paraview`
4. In the paraview GUI, open `output/tpv13-fault.xdmf`.



7 changes: 0 additions & 7 deletions singularity.def
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
Bootstrap: docker
From: seissol/training:latest

%post
sed -i 's/\/home\/training/~\/.seissol-training/g' /entrypoint.sh

%runscript
cp -r /home/training ~/.seissol-training
/entrypoint.sh


13 changes: 0 additions & 13 deletions singularity.md

This file was deleted.

0 comments on commit 3de2895

Please sign in to comment.