https://github.com/elmercsc/elmerfem-docker
Elmer recipes for docker
https://github.com/elmercsc/elmerfem-docker
Last synced: 7 months ago
JSON representation
Elmer recipes for docker
- Host: GitHub
- URL: https://github.com/elmercsc/elmerfem-docker
- Owner: ElmerCSC
- Created: 2020-10-16T17:19:25.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-09T11:53:12.000Z (over 5 years ago)
- Last Synced: 2025-01-23T22:41:21.340Z (over 1 year ago)
- Language: CMake
- Size: 16.6 KB
- Stars: 4
- Watchers: 7
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Elmer build apparatuses for various Linux distros using docker Dockerfiles
Currently ubuntu-focal and debian-buster work fine. Others are remnants of past.
Usage:
* Set env variable `ELMER_SOURCE_DIR` point at elmer source directory.
* Run `make build-` where `` corresponds to `Dockerfile-` and `precaches/opts-.cmake`
* You can also do `make conf-` to run cmake only or `make bash-` to explore build environment.
* A special contained setup (initially only for ubuntu-focal) for using Docker to actually run Elmer simulations on your system is built by `make runenv-`
* This creates an image that contains an MPI-enabled Elmer installation that can be used to run Elmer simulations. Provided you are in the subdirectory where the input files reside, do a
```bash
$ docker run -it -v $(pwd -LP):/home elmer-runenv-ubuntu-focal /usr/local/elmer/bin/ElmerSolver nameofyour.sif
````
* or in case of a parallel MPI run (here with 6 processes)
```bash
$ docker run -it -v $(pwd -LP):/home elmer-runenv-ubuntu-focal mpirun --allow-run-as-root -np 6 /usr/local/elmer/bin/ElmerSolver nameofyour.sif
```
# TODO
* Build ElmerGUI separately or make elmergui build variants
* ctest runs