Skip to content

Commit cc7bc20

Browse files
committed
add dumux installation in docker image
1 parent 3b90bb6 commit cc7bc20

File tree

3 files changed

+86
-20
lines changed

3 files changed

+86
-20
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Free flow over porous media
2+
path: free-flow-over-porous-media
3+
url: https://precice.org/tutorials-free-flow-over-porous-media.html
4+
5+
participants:
6+
- Free-Flow
7+
- Porous-Media
8+
9+
cases:
10+
free-flow-dumux:
11+
participant: Free-Flow
12+
directory: ./free-flow-dumux
13+
run: ./run.sh
14+
component: dumux-adapter
15+
16+
porous-media-dumux:
17+
participant: Porous-Media
18+
directory: ./porous-media-dumux
19+
run: ./run.sh
20+
component: dumux-adapter
21+

tools/tests/dockerfiles/ubuntu_2404/Dockerfile

Lines changed: 45 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,25 @@ USER root
2222
# Installing necessary dependecies for preCICE
2323
RUN apt-get -qq update && \
2424
apt-get -qq -y install \
25-
build-essential \
26-
software-properties-common \
27-
cmake \
28-
curl \
29-
g++ \
30-
gfortran \
31-
git \
32-
libbenchmark-dev \
33-
libboost-all-dev \
34-
libeigen3-dev \
35-
libxml2-dev \
36-
lsb-release \
37-
petsc-dev \
38-
python3-dev \
39-
python3-numpy \
40-
python3-pip \
41-
python3-venv \
42-
pkg-config \
43-
wget
25+
build-essential \
26+
software-properties-common \
27+
cmake \
28+
curl \
29+
g++ \
30+
gfortran \
31+
git \
32+
libbenchmark-dev \
33+
libboost-all-dev \
34+
libeigen3-dev \
35+
libxml2-dev \
36+
lsb-release \
37+
petsc-dev \
38+
python3-dev \
39+
python3-numpy \
40+
python3-pip \
41+
python3-venv \
42+
pkg-config \
43+
wget
4444
USER precice
4545

4646
FROM precice_dependecies AS precice
@@ -187,4 +187,29 @@ RUN git clone https://github.com/precice/dealii-adapter.git &&\
187187
if [ -n "${DEALII_ADAPTER_PR}" ]; then git fetch origin pull/${DEALII_ADAPTER_PR}/head; fi && \
188188
git checkout ${DEALII_ADAPTER_REF} && \
189189
cmake . && \
190-
make -j $(nproc)
190+
make -j $(nproc)
191+
192+
FROM precice_dependecies AS dumux
193+
USER root
194+
RUN apt-get update
195+
USER precice
196+
COPY --from=precice /home/precice/.local/ /home/precice/.local/
197+
ARG DUNEVERSION
198+
ARG DUMUXVERSION
199+
RUN mkdir dumux&&\
200+
cd dumux&&\
201+
git clone --depth 1 https://gitlab.dune-project.org/core/dune-common.git -b releases/$DUNEVERSION &&\
202+
git clone --depth 1 https://gitlab.dune-project.org/core/dune-geometry.git -b releases/$DUNEVERSION &&\
203+
git clone --depth 1 https://gitlab.dune-project.org/core/dune-grid.git -b releases/$DUNEVERSION &&\
204+
git clone --depth 1 https://gitlab.dune-project.org/core/dune-istl.git -b releases/$DUNEVERSION &&\
205+
git clone --depth 1 https://gitlab.dune-project.org/extensions/dune-subgrid.git -b releases/$DUNEVERSION &&\
206+
git clone --depth 1 https://git.iws.uni-stuttgart.de/dumux-repositories/dumux.git -b releases/$DUMUXVERSION &&\
207+
git clone -b cell_problems https://git.iws.uni-stuttgart.de/dumux-appl/dumux-phasefield.git &&\
208+
git clone --depth 1 https://gitlab.dune-project.org/extensions/dune-SPGrid.git -b releases/$DUNEVERSION &&\
209+
git clone --depth 1 https://github.com/precice/dumux-adapter.git -b develop
210+
USER precice
211+
WORKDIR /home/precice/dumux
212+
ENV PATH ${WORKDIR}/dune-common/bin:${PATH}
213+
# build core DUNE, DuMuX and the adapter
214+
RUN dunecontrol --opts=cmake-test.opts all
215+
ENV DUNE_CONTROL_PATH=${WORKDIR}/dune-common/dune.module:${WORKDIR}/dune-geometry/dune.module:${WORKDIR}/dune-grid/dune.module:${WORKDIR}/dune-localfunctions/dune.module:${WORKDIR}/dune-istl/dune.module:${WORKDIR}/dune-subgrid/dune.module:${WORKDIR}/dumux/dune.module
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Two-scale heat conduction
2+
path: two-scale-heat-conduction
3+
url: https://precice.org/tutorials-two-scale-heat-conduction.html
4+
5+
participants:
6+
- macro-heat
7+
- Micro-Manager
8+
9+
cases:
10+
macro-dumux:
11+
participant: macro-heat
12+
directory: ./macro-dumux
13+
run: ./run.sh
14+
component: dumux-adapter
15+
16+
micro-dumux:
17+
participant: Micro-Manager
18+
directory: ./micro-dumux
19+
run: ./run.sh
20+
component: dumux-adapter

0 commit comments

Comments
 (0)