target_compile_definitions(amdis PUBLIC AMDIS_BACKEND_MTL=1)
option(ENABLE_ALL_WARNINGS "enable all meaningful warnings" OFF)
target_compile_options(amdis PUBLIC -Wall -pedantic -Wno-unused-parameter)#-ftemplate-backtrace-limit=0
if(ENABLE_ALL_WARNINGS)
target_compile_options(amdis PUBLIC "-Wall""-Wextra""-pedantic""-Wnon-virtual-dtor""-Wold-style-cast""-Wcast-align""-Woverloaded-virtual""-Wpedantic""-Wconversion")
endif(ENABLE_ALL_WARNINGS)
# finalize the dune project, e.g. generating config.h etc.
# finalize the dune project, e.g. generating config.h etc.
And a compiler that supports the C++14 standard, e.g. g++ >= 5.0 and clang >= 3.6, and cmake >= 3.1.
And a compiler that supports the C++14 standard, e.g. g++ >= 5.0 and clang >= 3.6, and cmake >= 3.1.
By default, the `dune-istl` linear-algebra backend is used. To choose one of `ISTL`, `MTL`, or `EIGEN`, you can specify the cmake parameter `-DBACKEND=[ISTL,MTL,EIGEN]`.
If your MTL4 installation is not found by default, you have to specify the path,
If your MTL4 installation is not found by default, you have to specify the path,
where the file `MTLConfig.cmake` is found, here called `MTL_ROOT`. Then simply use
where the file `MTLConfig.cmake` is found, here called `MTL_ROOT`. Then simply use
And a compiler that supports the C++14 standard, e.g. `g++` >= 5.0 and `clang` >= 3.6,
And a compiler that supports the C++14 standard, e.g. g++ >= 5.0 and clang >= 3.6, and cmake >= 3.1.
and `cmake` >= 3.1.
By default, the `dune-istl` linear-algebra backend is used. To choose one of `ISTL`, `MTL`, or `EIGEN`, you can specify the cmake parameter `-DBACKEND=[ISTL,MTL,EIGEN]`.
If your MTL4 installation is not found by default, you have to specify the path,
If your MTL4 installation is not found by default, you have to specify the path,
where the file `MTLConfig.cmake` is found, here called `MTL_ROOT`. Then simply use
where the file `MTLConfig.cmake` is found, here called `MTL_ROOT`. Then simply use
`dunecontrol` to configure and `cmake` to build:
`dunecontrol` to configure and `cmake` to build:
```bash
CMAKE_FLAGS="-DMTL_DIR:PATH=[MTL_ROOT]" dunecontrol --current all
This compiles the library and all examples in the `src/` directory.
cmake --build build-cmake
```
Install Dune modules
Install Dune modules
--------------------
--------------------
To install all required Dune modules you can either install a debian package (Version 2.6 required), using source packages (e.g. [Version 2.6](https://dune-project.org/releases/2.6.0rc1/)), or install everything from the repository:
To install all required Dune modules you can either install a debian package (Version 2.6 required), using source packages (e.g. [Version 2.6](https://dune-project.org/releases/2.6.0/)), or install everything from the repository: