A Spack repository for the Dune core, staging and extension modules.
Go to file
Gauthier Folzan ea5a689876 small explanation about how to create a new module 2020-04-06 10:23:12 +02:00
packages Dummy module to facilitate developement of new modules 2020-04-06 10:02:27 +02:00
.gitignore Initial commit 2020-03-30 22:20:53 +02:00
README.md small explanation about how to create a new module 2020-04-06 10:23:12 +02:00
create_package.sh Shared lib by default 2020-04-02 13:08:18 +02:00
repo.yaml Some cleaning and missing file for spack repo 2020-03-31 17:27:00 +02:00

README.md

Dune Spack repository

Installation

Clone spack git

git clone https://github.com/spack/spack.git
source ./share/spack/setup-env.sh
spack bootstrap

add dune spack repo

cd $HOME
git clone https://github.com/gauthier12/dune_spack_repo.git
spack repo add dune_spack_repo

Install dune modules

spack install dune-python

Use a module

To use dune-python, load the module

source $SPACK_ROOT/share/spack/setup-env.sh
spack load dune-python

Build a new module

Initialize developement environment

source $SPACK_ROOT/share/spack/setup-env.sh
spack install --only=dependencies dune-newmodule
spack build-env dune-newmodule $SHELL

Initialize dune project

duneproject

Answer the questions about the new modules, enter the project folder and compile with standard cmake

mkdir build
cd build 
cmake ..
cmake --build .
``