Skip to content
This repository was archived by the owner on Aug 14, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
dc4994f
Use PETSc with 18.04
Eder-K Jul 16, 2020
e50b147
Update to use PETSc 3.12 with 18.04
Eder-K Jul 16, 2020
451f9d1
Fix indentation
Eder-K Jul 16, 2020
4316725
Merge subsequent run commands
Eder-K Jul 16, 2020
4ae9a58
Link petsc library
Eder-K Jul 16, 2020
f310be3
Adjust linked path
Eder-K Jul 16, 2020
526db74
Restore commented lines
Eder-K Jul 16, 2020
e523624
Merge branch 'develop' into EderK-update_petsc
Eder-K Jul 17, 2020
2f12878
Reduce travis.yml temporarily
Eder-K Jul 17, 2020
4fd2802
Use Makefile from calculix-adapter#41
Eder-K Jul 17, 2020
574069f
Separate precice branch from adapter branch
Eder-K Jul 19, 2020
58204be
Install ARPACK and spooles from apt
Eder-K Jul 19, 2020
53290db
Use PR version of Makefile
Eder-K Jul 19, 2020
fa6bf99
Clean up deprecated code
Eder-K Jul 19, 2020
995aa52
Fix build adapter command
Eder-K Jul 19, 2020
beaa030
Rename test folder
Eder-K Jul 19, 2020
9299afe
Extend LD_LIBRARY_PATH
Eder-K Jul 19, 2020
2ec7667
Format command
Eder-K Jul 19, 2020
f23174a
Remove symbol
Eder-K Jul 19, 2020
c063ee7
Remove slash
Eder-K Jul 19, 2020
7892191
Reduce test time to 0.1
Eder-K Jul 19, 2020
127fba4
Fix LD_LIBRARY_PATH
Eder-K Jul 19, 2020
0d03de4
Revert max-time to 1
Eder-K Jul 19, 2020
bcc4932
Use newer openfoam-adapter dockerfile
Eder-K Jul 19, 2020
b048d43
Update base version in st_output push
Eder-K Jul 19, 2020
69d85b5
Merge branch 'develop' into EderK-update_petsc
Eder-K Jul 20, 2020
27df17e
Separate preCICE branch and adapter branch
Eder-K Jul 20, 2020
f3dec14
Restore .travis.yml
Eder-K Jul 20, 2020
439e152
Update Ubuntu 16.04 PETSc version
Eder-K Jul 20, 2020
e2ffebc
Remove debug command
Eder-K Jul 20, 2020
610fedf
Update openfoam-adapter dockerfile path
Eder-K Jul 21, 2020
f3e75a4
Use makefile-dep-apt branch
Eder-K Jul 21, 2020
3ff3f4f
Fix double PETSc argument
Eder-K Jul 21, 2020
6db5e25
Add permissions to petsc dir
Eder-K Jul 22, 2020
294ff46
Format line
Eder-K Jul 22, 2020
4d1c2fb
Move precice user creation
Eder-K Jul 22, 2020
73b3c5e
Merge branch 'develop' into EderK-update_petsc
Eder-K Jul 22, 2020
c0523c1
Update base image in openfoam tests to 18.04
Eder-K Jul 22, 2020
361cb72
Make Ubuntu 18.04 the default image
Eder-K Jul 22, 2020
5d79bc0
Merge branch 'EderK-update_petsc' of github.com:precice/systemtests i…
Eder-K Jul 22, 2020
531df76
Remove 16.04 suffixes
Eder-K Jul 22, 2020
4733dd3
Update default base image
Eder-K Jul 22, 2020
952fe6c
Add missing adapter builds with 18.04
Eder-K Jul 22, 2020
efa6437
Add deal.ii 18.04 to allowed failures
Eder-K Jul 22, 2020
95a7030
Omit suffix for default base image
Eder-K Jul 22, 2020
364ab29
Update base version for triggered tests
Eder-K Jul 22, 2020
27d21e3
Enable output for 1dtube_py
Eder-K Jul 23, 2020
5259b79
Update reference
Eder-K Jul 23, 2020
0a46dfe
Disable output
Eder-K Jul 23, 2020
3f4e6d8
Update reference
Eder-K Jul 23, 2020
d0ca057
Fix broken args
Eder-K Jul 23, 2020
f8720b0
Add missing hyphen
Eder-K Jul 23, 2020
8d5c03a
Fix nutils-of test command
Eder-K Jul 23, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
123 changes: 84 additions & 39 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
allow_failures:
# Currently unstable tests that do not affect the build status
# To add a test here, list its exact name
- name: "[18.04] deal.ii adapter [Job failure permitted]"
- name: "[18.04] FEniCS adapter [Job failure permitted]"
- name: "Ubuntu 18.04.sudo.mpich [Job failure permitted]"
- name: "Ubuntu 16.04 home PETSc [Job failure permitted]"
- name: "[16.04] deal.ii <-> OpenFOAM [Job failure permitted]"
- name: "[16.04 PETSc] OpenFOAM <-> CalculiX [FSI] [Job failure permitted]"
- name: "[16.04] SU2 <-> Calculix [unstable][Job failure permitted]"
- name: "[18.04] deal.ii <-> OpenFOAM [Job failure permitted]"
- name: "[18.04] SU2 <-> Calculix [unstable][Job failure permitted]"
- name: "[18.04 PETSc] OpenFOAM <-> CalculiX [FSI][Job failure permitted]"

include:
- stage: Building preCICE
Expand Down Expand Up @@ -151,7 +151,7 @@ jobs:
if: fork = false
script:
- python build_adapter.py --dockerfile adapters/Dockerfile.su2-adapter --operating-system ubuntu1604 --precice-installation home --docker-username $DOCKER_USERNAME
- python push.py --adapter adapters/Dockerfile.su2-adapter
- python push.py --adapter adapters/Dockerfile.su2-adapter --base Ubuntu1604.home
deploy:
skip_cleanup: true
provider: script
Expand All @@ -161,11 +161,26 @@ jobs:
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin &&
python push_adapter.py --dockerfile adapters/Dockerfile.su2-adapter --operating-system ubuntu1604 --precice-installation home --docker-username $DOCKER_USERNAME

- name: "[18.04] SU2 adapter"
if: fork = false
script:
- python build_adapter.py --dockerfile adapters/Dockerfile.su2-adapter --operating-system ubuntu1804 --precice-installation home --docker-username $DOCKER_USERNAME
- python push.py --adapter adapters/Dockerfile.su2-adapter
deploy:
skip_cleanup: true
provider: script
on:
all_branches: true
script: >-
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin &&
python push_adapter.py --dockerfile adapters/Dockerfile.su2-adapter --operating-system ubuntu1804 --precice-installation home --docker-username $DOCKER_USERNAME


- name: "[16.04] CalculiX adapter"
if: fork = false
script:
- python build_adapter.py --dockerfile adapters/Dockerfile.calculix-adapter --operating-system ubuntu1604 --precice-installation home --docker-username $DOCKER_USERNAME
- python push.py --adapter adapters/Dockerfile.calculix-adapter
- python build_adapter.py --dockerfile adapters/Dockerfile.calculix-adapter --operating-system ubuntu1604 --precice-installation home --docker-username $DOCKER_USERNAME -ab makefile-dep-apt
- python push.py --adapter adapters/Dockerfile.calculix-adapter --base Ubuntu1604.home
deploy:
skip_cleanup: true
provider: script
Expand All @@ -175,11 +190,26 @@ jobs:
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin &&
python push_adapter.py --dockerfile adapters/Dockerfile.calculix-adapter --operating-system ubuntu1604 --precice-installation home --docker-username $DOCKER_USERNAME

- name: "[18.04] CalculiX adapter"
if: fork = false
script:
- python build_adapter.py --dockerfile adapters/Dockerfile.calculix-adapter --operating-system ubuntu1804 --precice-installation home --docker-username $DOCKER_USERNAME -ab makefile-dep-apt
- python push.py --adapter adapters/Dockerfile.calculix-adapter
deploy:
skip_cleanup: true
provider: script
on:
all_branches: true
script: >-
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin &&
python push_adapter.py --dockerfile adapters/Dockerfile.calculix-adapter --operating-system ubuntu1804 --precice-installation home --docker-username $DOCKER_USERNAME


- name: "[16.04] deal.ii adapter"
if: fork = false
script:
- python build_adapter.py --dockerfile adapters/Dockerfile.dealii-adapter --operating-system ubuntu1604 --precice-installation home --docker-username $DOCKER_USERNAME
- python push.py --adapter adapters/Dockerfile.dealii-adapter
- python push.py --adapter adapters/Dockerfile.dealii-adapter --base Ubuntu1604.home
deploy:
skip_cleanup: true
provider: script
Expand All @@ -189,6 +219,21 @@ jobs:
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin &&
python push_adapter.py --dockerfile adapters/Dockerfile.dealii-adapter --operating-system ubuntu1604 --precice-installation home --docker-username $DOCKER_USERNAME

- name: "[18.04] deal.ii adapter [Job failure permitted]"
if: fork = false
script:
- python build_adapter.py --dockerfile adapters/Dockerfile.dealii-adapter --operating-system ubuntu1804 --precice-installation home --docker-username $DOCKER_USERNAME
- python push.py --adapter adapters/Dockerfile.dealii-adapter
deploy:
skip_cleanup: true
provider: script
on:
all_branches: true
script: >-
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin &&
python push_adapter.py --dockerfile adapters/Dockerfile.dealii-adapter --operating-system ubuntu1804 --precice-installation home --docker-username $DOCKER_USERNAME


- name: "[16.04] OpenFOAM adapter"
if: fork = false
script:
Expand All @@ -206,16 +251,16 @@ jobs:
- name: "[18.04] OpenFOAM adapter"
if: fork = false
script:
- python build_adapter.py --dockerfile adapters/Dockerfile.openfoam-adapter.Ubuntu1804 --operating-system ubuntu1804 --precice-installation home --docker-username $DOCKER_USERNAME
- python push.py --adapter adapters/Dockerfile.openfoam-adapter.Ubuntu1804
- python build_adapter.py --dockerfile adapters/Dockerfile.openfoam-adapter --operating-system ubuntu1804 --precice-installation home --docker-username $DOCKER_USERNAME
- python push.py --adapter adapters/Dockerfile.openfoam-adapter
deploy:
skip_cleanup: true
provider: script
on:
all_branches: true
script: >-
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin &&
python push_adapter.py --dockerfile adapters/Dockerfile.openfoam-adapter.Ubuntu1804 --operating-system ubuntu1804 --precice-installation home --docker-username $DOCKER_USERNAME
python push_adapter.py --dockerfile adapters/Dockerfile.openfoam-adapter --operating-system ubuntu1804 --precice-installation home --docker-username $DOCKER_USERNAME

- name: "[18.04] FEniCS adapter [Job failure permitted]"
if: fork = false
Expand Down Expand Up @@ -244,10 +289,10 @@ jobs:
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin &&
python push_adapter.py --dockerfile adapters/Dockerfile.codeaster-adapter --operating-system ubuntu1804 --precice-installation home --docker-username $DOCKER_USERNAME

- name: "[16.04] OpenFOAM adapter [PETSc]"
- name: "[18.04] OpenFOAM adapter [PETSc]"
if: fork = false
script:
- python build_adapter.py --dockerfile adapters/Dockerfile.openfoam-adapter --operating-system ubuntu1604 --precice-installation home --petsc yes --docker-username $DOCKER_USERNAME
- python build_adapter.py --dockerfile adapters/Dockerfile.openfoam-adapter --operating-system ubuntu1804 --precice-installation home --petsc yes --docker-username $DOCKER_USERNAME
- python push.py --adapter adapters/Dockerfile.openfoam-adapter
deploy:
skip_cleanup: true
Expand All @@ -256,12 +301,12 @@ jobs:
all_branches: true
script: >-
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin &&
python push_adapter.py --dockerfile adapters/Dockerfile.openfoam-adapter --operating-system ubuntu1604 --precice-installation home --petsc yes --docker-username $DOCKER_USERNAME
python push_adapter.py --dockerfile adapters/Dockerfile.openfoam-adapter --operating-system ubuntu1804 --precice-installation home --petsc yes --docker-username $DOCKER_USERNAME

- name: "[16.04] CalculiX adapter [PETSc]"
- name: "[18.04] CalculiX adapter [PETSc]"
if: fork = false
script:
- python build_adapter.py --dockerfile adapters/Dockerfile.calculix-adapter --operating-system ubuntu1604 --precice-installation home --petsc yes --docker-username $DOCKER_USERNAME
- python build_adapter.py --dockerfile adapters/Dockerfile.calculix-adapter --operating-system ubuntu1804 --precice-installation home --petsc yes --docker-username $DOCKER_USERNAME -ab makefile-dep-apt
- python push.py --adapter adapters/Dockerfile.calculix-adapter
deploy:
skip_cleanup: true
Expand All @@ -270,7 +315,7 @@ jobs:
all_branches: true
script: >-
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin &&
python push_adapter.py --dockerfile adapters/Dockerfile.calculix-adapter --operating-system ubuntu1604 --precice-installation home --petsc yes --docker-username $DOCKER_USERNAME
python push_adapter.py --dockerfile adapters/Dockerfile.calculix-adapter --operating-system ubuntu1804 --precice-installation home --petsc yes --docker-username $DOCKER_USERNAME


- name: "[Build adapters on fork] Using cached version"
Expand All @@ -280,67 +325,67 @@ jobs:


- stage: Tests
name: "[16.04] SU2 <-> Calculix [unstable][Job failure permitted]"
name: "[18.04] SU2 <-> Calculix [unstable][Job failure permitted]"
script:
- python system_testing.py -s su2-ccx -v
- python push.py --test su2-ccx

- name: "[16.04] OpenFOAM <-> OpenFOAM"
- name: "[18.04] OpenFOAM <-> OpenFOAM"
script:
- python system_testing.py -s of-of -v
- python push.py --test of-of

- name: "[16.04] Calculix <-> OpenFOAM"
- name: "[18.04] Calculix <-> OpenFOAM"
script:
- python system_testing.py -s of-ccx -v
- python push.py --test of-ccx -o
- python push.py --test of-ccx

- name: "[18.04] FEniCS <-> FEniCS"
script:
- python system_testing.py -s fe-fe --base Ubuntu1804.home -v
- python push.py --test fe-fe --base Ubuntu1804.home
- python system_testing.py -s fe-fe -v
- python push.py --test fe-fe

- name: "[16.04] Bindings/Solverdummies"
script:
- python system_testing.py -s bindings -v
- python push.py --test bindings
- python system_testing.py -s bindings --base Ubuntu1604.home -v
- python push.py --test bindings --base Ubuntu1604.home

- name: "[18.04] Bindings/Solverdummies"
script:
- python system_testing.py -s bindings --base Ubuntu1804.home -v
- python push.py --test bindings --base Ubuntu1804.home
- python system_testing.py -s bindings -v
- python push.py --test bindings

- name: "[16.04] deal.ii <-> OpenFOAM [Job failure permitted]"
- name: "[18.04] deal.ii <-> OpenFOAM [Job failure permitted]"
script:
- python system_testing.py -s dealii-of -v
- python push.py --test dealii-of
- python system_testing.py -s dealiif -v
- python push.py --test dealiif

- name: "[18.04] nutils <-> OpenFOAM"
script:
- python system_testing.py -s nutils-of --base Ubuntu1804.home -v
- python push.py --test nutils-of --base Ubuntu1804.home
- python system_testing.py -s nutils-of -v
- python push.py --test nutils-of

- name: "[16.04] OpenFOAM <-> OpenFOAM [nearest projection]"
- name: "[18.04] OpenFOAM <-> OpenFOAM [nearest projection]"
script:
- python system_testing.py -s of-of_np -v
- python push.py --test of-of_np

- name: "[18.04] OpenFOAM <-> Code_Aster"
script:
- python system_testing.py -s of-ca --base Ubuntu1804.home -v
- python system_testing.py -s of-ca -v
- python push.py --test of-ca

- name: "[16.04] Elastictube1D - Python"
- name: "[18.04] Elastictube1D - Python"
script:
- python system_testing.py -s 1dtube_py -v
- python push.py --test 1dtube_py

- name: "[16.04] Elastictube1D - C++"
- name: "[18.04] Elastictube1D - C++"
script:
- python system_testing.py -s 1dtube_cxx -v
- python push.py --test 1dtube_cxx

- name: "[16.04 PETSc] OpenFOAM <-> CalculiX [FSI] [Job failure permitted]"
- name: "[18.04 PETSc] OpenFOAM <-> CalculiX [FSI][Job failure permitted]"
script:
- python system_testing.py -s of-ccx_fsi --base Ubuntu1604.home.PETSc -v
- python push.py --test of-ccx_fsi --petsc
- python system_testing.py -s of-ccx_fsi --base Ubuntu1804.home.PETSc -v
- python push.py --test of-ccx_fsi --base Ubuntu1804.home.PETSc
26 changes: 9 additions & 17 deletions adapters/Dockerfile.calculix-adapter
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
ARG from=precice/precice-ubuntu1604.home-develop
ARG base_solver=precice/calculix:2.16
FROM ${base_solver} as calculix
ARG branch=develop
ARG from=precice/precice-ubuntu1804.home-${branch}
FROM $from

USER root

# ( since we are importing form the precice image )
RUN apt-get -qq update && apt-get -qq install \
build-essential \
Expand All @@ -14,30 +14,22 @@ RUN apt-get -qq update && apt-get -qq install \
autoconf \
autotools-dev \
bzip2 \
libarpack2-dev \
libspooles2.2 \
libyaml-cpp-dev && \
rm -rf /var/lib/apt/lists/*

ARG CACHEBUST
# copy arpack and spooles
COPY --from=calculix /usr/local/ARPACK /usr/local/ARPACK
COPY --from=calculix /spooles.2.2 /spooles.2.2

USER precice
# get calculix source
WORKDIR /home/precice
RUN curl -s http://www.dhondt.de/ccx_2.16.src.tar.bz2 | tar -xj
ARG branch=develop
RUN git clone --branch $branch https://github.com/precice/calculix-adapter.git
WORKDIR calculix-adapter/
# specify proper locations of libraries
RUN sed -i -e 's|CCX\s\+=.*|CCX = /home/precice/CalculiX/ccx_2.16/src|g'\
-e 's|SPOOLES\s\+=.*|SPOOLES = /spooles.2.2|g'\
-e 's|ARPACK\s\+=.*|ARPACK = /usr/local/ARPACK|g'\
-e 's|-L$(YAML)/build||g' \
-e 's|-I$(YAML)/include||g' \
-e 's|CC\s\+=.*|CC=cc|g' Makefile
ARG adapter_branch=develop
RUN git clone --branch $adapter_branch https://github.com/precice/calculix-adapter.git

# build and clean-up
# build adapter
WORKDIR calculix-adapter/
RUN make -j $(nproc)

# create directory for input/out/exchange
Expand Down
6 changes: 4 additions & 2 deletions adapters/Dockerfile.codeaster-adapter
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ARG from=precice/precice-ubuntu1804.home-develop
ARG branch=develop
ARG from=precice/precice-ubuntu1804.home-${branch}
ARG base_solver=precice/codeaster
FROM ${base_solver}
FROM $from
Expand All @@ -25,7 +26,8 @@ WORKDIR /home/precice

COPY --from=precice/codeaster /home/precice/Code_Aster /home/precice/Code_Aster

RUN git clone https://github.com/precice/code_aster-adapter.git
ARG adapter_branch=develop
RUN git clone --branch $adapter_branch https://github.com/precice/code_aster-adapter.git

RUN \
sed -i "s|.rmed|.resu|g" code_aster-adapter/cht/adapter.comm && \
Expand Down
9 changes: 6 additions & 3 deletions adapters/Dockerfile.dealii-adapter
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ARG from=precice/precice-ubuntu1604.home-develop
ARG branch=develop
ARG from=precice/precice-ubuntu1604.home-${branch}
ARG base_solver=precice/deal.ii
FROM ${base_solver} as deal.ii
FROM $from
Expand All @@ -10,8 +11,10 @@ COPY --from=deal.ii /root/dealii/ /home/precice/dealii/
USER precice
WORKDIR /home/precice
RUN mkdir -p Logs Data/Input Data/Output Data/Exchange
ARG branch=develop
RUN git clone --branch $branch https://github.com/precice/dealii-adapter.git

ARG adapter_branch=develop
RUN git clone --branch $adapter_branch https://github.com/precice/dealii-adapter.git

RUN cd dealii-adapter/linear_elasticity/ && \
cmake -DDEAL_II_DIR=$HOME/dealii -DDIM=3 -DCMAKE_BUILD_TYPE=Release . && \
make -j $(nproc)
Expand Down
3 changes: 2 additions & 1 deletion adapters/Dockerfile.fenics-adapter
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# System testing preCICE with fenics-adapter

# Building on top of the latest preCICE-build
ARG from=precice/precice-ubuntu1804.home-develop
ARG branch=develop
ARG from=precice/precice-ubuntu1804.home-${branch}
FROM $from

USER root
Expand Down
23 changes: 17 additions & 6 deletions adapters/Dockerfile.openfoam-adapter
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ARG from=precice/precice-ubuntu1604.home-develop
ARG branch=develop
ARG from=precice/precice-ubuntu1804.home-${branch}
ARG base_solver=precice/openfoam
FROM ${base_solver} as openfoam
FROM $from
Expand All @@ -12,17 +13,27 @@ RUN apt-get -qq update && apt-get -qq install \
wget apt-transport-https && \
rm -rf /var/lib/apt/lists/*


ARG CACHEBUST

# # Installing OpenFOAM5 manually
# RUN sh -c "wget -O - http://dl.openfoam.org/gpg.key | apt-key add -" && \
# add-apt-repository http://dl.openfoam.org/ubuntu && \
# apt-get update && \
# apt-get -y install openfoam5

# Get OpenFOAM5 install via folder copy
COPY --from=openfoam /opt/openfoam5 /opt/openfoam5/


# Building openfoam-adapter
USER precice
SHELL ["/bin/bash", "-c"]
SHELL ["/bin/bash", "-c"] # without this command /opt/openfoam5/etc/bashrc cannot be sourced
WORKDIR /home/precice
RUN mkdir -p Logs Data/Input Data/Output Data/Exchange
ARG branch=develop
RUN git clone --branch $branch https://github.com/precice/openfoam-adapter.git
ARG adapter_branch=develop
RUN git clone --branch $adapter_branch https://github.com/precice/openfoam-adapter.git
WORKDIR /home/precice/openfoam-adapter
RUN . /opt/openfoam5/etc/bashrc && ./Allwmake
RUN cp wmake.log Allwmake.log ldd.log $HOME/Logs
RUN . /opt/openfoam5/etc/bashrc && ./Allwmake && cp wmake.log Allwmake.log ldd.log $HOME/Logs

ENV LD_LIBRARY_PATH="/usr/lib:${LD_LIBRARY_PATH}"
Loading