An open API service indexing awesome lists of open source software.

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

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