Tsunami Lab — Project Reports
Documentation and reports for the Tsunami Lab at Friedrich Schiller University Jena.
Project Phases:
- Overview
- 1. Riemann Solver
- 2. Finite Volume Discretization
- 3. Bathymetry & Boundary Conditions
- 4. Two-Dimensional Solver
- 5. Large Data Input and Output
- 6. Tsunami Simulations
- 7. Checkpointing and Coarse Output
- 8. Optimization
- 9. Parallelization
- 10. Individual Phase Week 1 — Real-Time OpenGL Visualization
- 11. Individual Phase Week 2 — Live Simulation & Visual Overhaul
- 12. Individual Phase Week 3 — Earthquake Sources, Rendering & CPU Pinning
- 13. Project Report: Interactive Real-Time Tsunami Simulation
Live Application
The interactive browser version is deployed from main to GitHub Pages:
Code Documentation
The source code documentation is generated using Doxygen and hosted online:
Build Process
The project builds with CMake. Third-party
dependencies (Catch2, pugixml, glm) are downloaded at configure time via
FetchContent, so a fresh clone needs no submodules. docker-compose.yml
provides reproducible environments for every build step.
Web app (Docker). Four steps, in this order, since each consumes the artifacts of the previous one:
docker compose run --rm web-build # C++ -> wasm -> web/public/wasm/
docker compose run --rm data # GEBCO/Slab2 -> web/public/data/
docker compose run --rm frontend # React build -> web/dist/
docker compose up serve # http://localhost:8080
Native solver and unit tests:
cmake -B build && cmake --build build -j
./build/tests # unit tests
./build/tsunami_lab # batch solver
Wasm build without Docker (needs the Emscripten SDK, verified with 6.0.2):
emcmake cmake -B build-web && cmake --build build-web -j
Documentation:
docker compose run --rm docs # sphinx -> sphinx/build/html
Style check:
find src/ -name "*.cpp" -o -name "*.h" | xargs clang-format --dry-run --Werror
To fix style violations automatically:
find src/ -name "*.cpp" -o -name "*.h" | xargs clang-format -i
CI/CD:
Every push and pull request to main triggers the GitHub Actions pipeline, which runs
style checking (clang-format), static analysis (cppcheck), unit tests, sanitizer builds,
and Valgrind memory checks. A second workflow deploys the web app and these docs to
GitHub Pages on every push to main.