From ce0d26a932fd90a677df5ff0a6100c6fedf6a3aa Mon Sep 17 00:00:00 2001 From: Gerasimos Chourdakis Date: Fri, 27 Nov 2026 15:42:22 +0100 Subject: [PATCH 01/11] Update solids4foam base image for the system tests --- tests/dockerfiles/ubuntu_2404/Dockerfile | 55 ++++++++++++++++++++---- 1 file changed, 47 insertions(+), 8 deletions(-) diff --git a/tests/dockerfiles/ubuntu_2404/Dockerfile b/tests/dockerfiles/ubuntu_2404/Dockerfile index 29e4c6831..6081e17f4 100644 --- a/tests/dockerfiles/ubuntu_2404/Dockerfile +++ b/tests/dockerfiles/ubuntu_2404/Dockerfile @@ -608,10 +608,13 @@ USER precice WORKDIR /home/precice ### end of mfem_adapter stage ### -FROM solids4foam/solids4foam:v2.3-openfoam-v2412-latest AS solids4foam +FROM solids4foam/solids4foam:development-openfoam-v2512-latest AS solids4foam ARG PRECICE_UID=1000 ARG PRECICE_GID=1000 +ARG PRECICE_PR +ARG PRECICE_REF +ARG PRECICE_PRESET ARG OPENFOAM_ADAPTER_PR ARG OPENFOAM_ADAPTER_REF @@ -619,6 +622,33 @@ USER root SHELL ["/bin/bash", "-c"] ENV DEBIAN_FRONTEND=noninteractive +# Dependencies for preCICE and common dependencies for the tutorials/tests +RUN apt-get -qq update && \ + apt-get -qq -y install \ + build-essential \ + software-properties-common \ + cmake \ + curl \ + g++ \ + gfortran \ + git \ + libbenchmark-dev \ + libboost-all-dev \ + libeigen3-dev \ + libopenmpi-dev \ + libxml2-dev \ + lsb-release \ + openmpi-bin \ + petsc-dev \ + python3-dev \ + python3-numpy \ + python3-pip \ + python3-venv \ + pkg-config \ + wget \ + inotify-tools \ + libosmesa6 + # Set the same user as the rest of the system tests components, for consistency. RUN set -eux; \ if getent group "${PRECICE_GID}" >/dev/null; then \ @@ -646,20 +676,29 @@ RUN mv /root/OpenFOAM/ /home/precice/OpenFOAM/ && \ chown -R "${PRECICE_UID}:${PRECICE_GID}" /home/precice/OpenFOAM # Set a general openfoam executable, to make the component template version-independent -RUN ln -sf /usr/bin/openfoam2412 /usr/bin/openfoam +RUN ln -sf /usr/bin/openfoam2512 /usr/bin/openfoam RUN apt-get -qq update && \ apt-get -qq -y install wget git -# preCICE v3.4 was the last release to support Ubuntu 22.04 (used as a base image), -# so there is no reason to accept the preCICE version as an argument and build it from source. -# Rework this part once a newer base image is used. -RUN wget https://github.com/precice/precice/releases/download/v3.4.1/libprecice3_3.4.1_jammy.deb && \ - apt-get -qq -y install ./libprecice3_3.4.1_jammy.deb - USER precice WORKDIR /home/precice +RUN git clone https://github.com/precice/precice.git precice && \ + cd precice && \ + if [ -n "${PRECICE_PR}" ]; then git fetch origin pull/${PRECICE_PR}/head; fi && \ + git checkout ${PRECICE_REF} && \ + mkdir build && cd build &&\ + cmake .. --preset=${PRECICE_PRESET} -DCMAKE_INSTALL_PREFIX=/home/precice/.local/ -DBUILD_TESTING=OFF && \ + make all install -j $(nproc) && \ + cd ../.. && rm -rf precice + +ENV PATH="${PATH}:/home/precice/.local/bin" +ENV LD_LIBRARY_PATH="/home/precice/.local/lib" +ENV CPATH="/home/precice/.local/include" +ENV PKG_CONFIG_PATH="/home/precice/.local/lib/pkgconfig" +ENV CMAKE_PREFIX_PATH="/home/precice/.local" + RUN git clone https://github.com/precice/openfoam-adapter.git &&\ cd openfoam-adapter && \ if [ -n "${OPENFOAM_ADAPTER_PR}" ]; then git fetch origin pull/${OPENFOAM_ADAPTER_PR}/head; fi && \ From 718d60b35038a0726d5c8db2af79ff43f88716ec Mon Sep 17 00:00:00 2001 From: Gerasimos Chourdakis Date: Fri, 27 Nov 2026 15:53:56 +0100 Subject: [PATCH 02/11] Add missing component build arguments --- tests/components.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/components.yaml b/tests/components.yaml index 9f171c597..98ea72aa8 100644 --- a/tests/components.yaml +++ b/tests/components.yaml @@ -431,6 +431,13 @@ solids4foam: description: Dockerfile platform used default: "ubuntu_2404" # The name "PLATFORM" is misleading: For this component, we use a different base image. + PRECICE_REF: + repository: https://github.com/precice/precice + default: "develop" + PRECICE_PR: + default: "" + PRECICE_PRESET: + default: "production-audit" TUTORIALS_REF: description: Tutorial git reference to use default: "develop" From 9362b405a83236266b3f70d863509d611a2b8806 Mon Sep 17 00:00:00 2001 From: Gerasimos Chourdakis Date: Fri, 27 Nov 2026 16:06:52 +0100 Subject: [PATCH 03/11] Fix OpenFOAM version --- tests/dockerfiles/ubuntu_2404/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/dockerfiles/ubuntu_2404/Dockerfile b/tests/dockerfiles/ubuntu_2404/Dockerfile index 6081e17f4..cf4785039 100644 --- a/tests/dockerfiles/ubuntu_2404/Dockerfile +++ b/tests/dockerfiles/ubuntu_2404/Dockerfile @@ -703,7 +703,7 @@ RUN git clone https://github.com/precice/openfoam-adapter.git &&\ cd openfoam-adapter && \ if [ -n "${OPENFOAM_ADAPTER_PR}" ]; then git fetch origin pull/${OPENFOAM_ADAPTER_PR}/head; fi && \ git checkout ${OPENFOAM_ADAPTER_REF} && \ - /usr/bin/openfoam2412 ./Allwmake -j $(nproc) + /usr/bin/openfoam2512 ./Allwmake -j $(nproc) FROM python:3.14 AS fieldcompare RUN pip install fieldcompare[all]==0.7.1 \ No newline at end of file From 0b008fb337e03de8526d499582f95a7ec7971aa5 Mon Sep 17 00:00:00 2001 From: Gerasimos Chourdakis Date: Fri, 27 Nov 2026 16:19:41 +0100 Subject: [PATCH 04/11] Disable PETSc for preCICE --- tests/dockerfiles/ubuntu_2404/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/dockerfiles/ubuntu_2404/Dockerfile b/tests/dockerfiles/ubuntu_2404/Dockerfile index cf4785039..3f68edfde 100644 --- a/tests/dockerfiles/ubuntu_2404/Dockerfile +++ b/tests/dockerfiles/ubuntu_2404/Dockerfile @@ -639,7 +639,6 @@ RUN apt-get -qq update && \ libxml2-dev \ lsb-release \ openmpi-bin \ - petsc-dev \ python3-dev \ python3-numpy \ python3-pip \ @@ -684,12 +683,13 @@ RUN apt-get -qq update && \ USER precice WORKDIR /home/precice +# Build preCICE. Disable PETSc to not conflict with the PETSc installation coming from the solids4foam image RUN git clone https://github.com/precice/precice.git precice && \ cd precice && \ if [ -n "${PRECICE_PR}" ]; then git fetch origin pull/${PRECICE_PR}/head; fi && \ git checkout ${PRECICE_REF} && \ mkdir build && cd build &&\ - cmake .. --preset=${PRECICE_PRESET} -DCMAKE_INSTALL_PREFIX=/home/precice/.local/ -DBUILD_TESTING=OFF && \ + cmake .. --preset=${PRECICE_PRESET} -DPRECICE_FEATURE_PETSC_MAPPING=off -DCMAKE_INSTALL_PREFIX=/home/precice/.local/ -DBUILD_TESTING=OFF && \ make all install -j $(nproc) && \ cd ../.. && rm -rf precice From 77d95e234e2a9a3c156a51cbb716334a2623f1ea Mon Sep 17 00:00:00 2001 From: Gerasimos Chourdakis Date: Fri, 27 Nov 2026 16:54:45 +0100 Subject: [PATCH 05/11] Extend LD_LIBRARY_PATH instead of overwriting it --- tests/dockerfiles/ubuntu_2404/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/dockerfiles/ubuntu_2404/Dockerfile b/tests/dockerfiles/ubuntu_2404/Dockerfile index 3f68edfde..77b4fa2fa 100644 --- a/tests/dockerfiles/ubuntu_2404/Dockerfile +++ b/tests/dockerfiles/ubuntu_2404/Dockerfile @@ -694,7 +694,7 @@ RUN git clone https://github.com/precice/precice.git precice && \ cd ../.. && rm -rf precice ENV PATH="${PATH}:/home/precice/.local/bin" -ENV LD_LIBRARY_PATH="/home/precice/.local/lib" +ENV LD_LIBRARY_PATH="/home/precice/.local/lib:${LD_LIBRARY_PATH}" ENV CPATH="/home/precice/.local/include" ENV PKG_CONFIG_PATH="/home/precice/.local/lib/pkgconfig" ENV CMAKE_PREFIX_PATH="/home/precice/.local" From 83ef77aa583dc03aa1ddbfcb5b2484979f8ec492 Mon Sep 17 00:00:00 2001 From: Gerasimos Chourdakis Date: Fri, 27 Nov 2026 16:55:04 +0100 Subject: [PATCH 06/11] Restore PETSC_Mapping --- tests/dockerfiles/ubuntu_2404/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/dockerfiles/ubuntu_2404/Dockerfile b/tests/dockerfiles/ubuntu_2404/Dockerfile index 77b4fa2fa..50963da39 100644 --- a/tests/dockerfiles/ubuntu_2404/Dockerfile +++ b/tests/dockerfiles/ubuntu_2404/Dockerfile @@ -689,7 +689,7 @@ RUN git clone https://github.com/precice/precice.git precice && \ if [ -n "${PRECICE_PR}" ]; then git fetch origin pull/${PRECICE_PR}/head; fi && \ git checkout ${PRECICE_REF} && \ mkdir build && cd build &&\ - cmake .. --preset=${PRECICE_PRESET} -DPRECICE_FEATURE_PETSC_MAPPING=off -DCMAKE_INSTALL_PREFIX=/home/precice/.local/ -DBUILD_TESTING=OFF && \ + cmake .. --preset=${PRECICE_PRESET} -DCMAKE_INSTALL_PREFIX=/home/precice/.local/ -DBUILD_TESTING=OFF && \ make all install -j $(nproc) && \ cd ../.. && rm -rf precice From 2ae377b060f1b9c3a870969dbb28b29614515ed0 Mon Sep 17 00:00:00 2001 From: Gerasimos Chourdakis Date: Fri, 27 Nov 2026 16:55:45 +0100 Subject: [PATCH 07/11] Adjust comments --- tests/dockerfiles/ubuntu_2404/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/dockerfiles/ubuntu_2404/Dockerfile b/tests/dockerfiles/ubuntu_2404/Dockerfile index 50963da39..edb12830c 100644 --- a/tests/dockerfiles/ubuntu_2404/Dockerfile +++ b/tests/dockerfiles/ubuntu_2404/Dockerfile @@ -647,6 +647,7 @@ RUN apt-get -qq update && \ wget \ inotify-tools \ libosmesa6 + # PETSc is already included in the solids4foam base image # Set the same user as the rest of the system tests components, for consistency. RUN set -eux; \ @@ -683,7 +684,6 @@ RUN apt-get -qq update && \ USER precice WORKDIR /home/precice -# Build preCICE. Disable PETSc to not conflict with the PETSc installation coming from the solids4foam image RUN git clone https://github.com/precice/precice.git precice && \ cd precice && \ if [ -n "${PRECICE_PR}" ]; then git fetch origin pull/${PRECICE_PR}/head; fi && \ From 84d976cc732bee9e05add5f6fbcef74706e59a00 Mon Sep 17 00:00:00 2001 From: Gerasimos Chourdakis Date: Fri, 27 Nov 2026 17:01:12 +0100 Subject: [PATCH 08/11] Adjust PKG_CONFIG_PATH --- tests/dockerfiles/ubuntu_2404/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/dockerfiles/ubuntu_2404/Dockerfile b/tests/dockerfiles/ubuntu_2404/Dockerfile index edb12830c..6882a7ddb 100644 --- a/tests/dockerfiles/ubuntu_2404/Dockerfile +++ b/tests/dockerfiles/ubuntu_2404/Dockerfile @@ -693,10 +693,11 @@ RUN git clone https://github.com/precice/precice.git precice && \ make all install -j $(nproc) && \ cd ../.. && rm -rf precice +# The base image already has PETSc installed at /opt/petsc ENV PATH="${PATH}:/home/precice/.local/bin" ENV LD_LIBRARY_PATH="/home/precice/.local/lib:${LD_LIBRARY_PATH}" ENV CPATH="/home/precice/.local/include" -ENV PKG_CONFIG_PATH="/home/precice/.local/lib/pkgconfig" +ENV PKG_CONFIG_PATH="/home/precice/.local/lib/pkgconfig:/opt/petsc/lib/pkgconfig" ENV CMAKE_PREFIX_PATH="/home/precice/.local" RUN git clone https://github.com/precice/openfoam-adapter.git &&\ From a5c67601917f48555b9c7efebfcc903a1c7b8d00 Mon Sep 17 00:00:00 2001 From: Gerasimos Chourdakis Date: Fri, 27 Nov 2026 17:04:50 +0100 Subject: [PATCH 09/11] Add PETSc to CMAKE_PREFIX_PATH --- tests/dockerfiles/ubuntu_2404/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/dockerfiles/ubuntu_2404/Dockerfile b/tests/dockerfiles/ubuntu_2404/Dockerfile index 6882a7ddb..05c1e52c2 100644 --- a/tests/dockerfiles/ubuntu_2404/Dockerfile +++ b/tests/dockerfiles/ubuntu_2404/Dockerfile @@ -698,7 +698,7 @@ ENV PATH="${PATH}:/home/precice/.local/bin" ENV LD_LIBRARY_PATH="/home/precice/.local/lib:${LD_LIBRARY_PATH}" ENV CPATH="/home/precice/.local/include" ENV PKG_CONFIG_PATH="/home/precice/.local/lib/pkgconfig:/opt/petsc/lib/pkgconfig" -ENV CMAKE_PREFIX_PATH="/home/precice/.local" +ENV CMAKE_PREFIX_PATH="/home/precice/.local:/opt/petsc" RUN git clone https://github.com/precice/openfoam-adapter.git &&\ cd openfoam-adapter && \ From 988a6e194a2f7d84d4e52267e378fd35d578766e Mon Sep 17 00:00:00 2001 From: Gerasimos Chourdakis Date: Fri, 27 Nov 2026 17:07:05 +0100 Subject: [PATCH 10/11] Move environment definition before build step --- tests/dockerfiles/ubuntu_2404/Dockerfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/dockerfiles/ubuntu_2404/Dockerfile b/tests/dockerfiles/ubuntu_2404/Dockerfile index 05c1e52c2..761be3e66 100644 --- a/tests/dockerfiles/ubuntu_2404/Dockerfile +++ b/tests/dockerfiles/ubuntu_2404/Dockerfile @@ -684,6 +684,13 @@ RUN apt-get -qq update && \ USER precice WORKDIR /home/precice +# The base image already has PETSc installed at /opt/petsc +ENV PATH="${PATH}:/home/precice/.local/bin" +ENV LD_LIBRARY_PATH="/home/precice/.local/lib:${LD_LIBRARY_PATH}" +ENV CPATH="/home/precice/.local/include" +ENV PKG_CONFIG_PATH="/home/precice/.local/lib/pkgconfig:/opt/petsc/lib/pkgconfig" +ENV CMAKE_PREFIX_PATH="/home/precice/.local:/opt/petsc" + RUN git clone https://github.com/precice/precice.git precice && \ cd precice && \ if [ -n "${PRECICE_PR}" ]; then git fetch origin pull/${PRECICE_PR}/head; fi && \ @@ -693,13 +700,6 @@ RUN git clone https://github.com/precice/precice.git precice && \ make all install -j $(nproc) && \ cd ../.. && rm -rf precice -# The base image already has PETSc installed at /opt/petsc -ENV PATH="${PATH}:/home/precice/.local/bin" -ENV LD_LIBRARY_PATH="/home/precice/.local/lib:${LD_LIBRARY_PATH}" -ENV CPATH="/home/precice/.local/include" -ENV PKG_CONFIG_PATH="/home/precice/.local/lib/pkgconfig:/opt/petsc/lib/pkgconfig" -ENV CMAKE_PREFIX_PATH="/home/precice/.local:/opt/petsc" - RUN git clone https://github.com/precice/openfoam-adapter.git &&\ cd openfoam-adapter && \ if [ -n "${OPENFOAM_ADAPTER_PR}" ]; then git fetch origin pull/${OPENFOAM_ADAPTER_PR}/head; fi && \ From 54a13d459bd3874841512c87082503b0a34fb9fc Mon Sep 17 00:00:00 2001 From: preCICE Tests VM Date: Fri, 27 Nov 2026 17:24:03 +0100 Subject: [PATCH 11/11] Update reference results --- .../reference-results/fluid-openfoam_solid-solids4foam.tar.gz | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perpendicular-flap/reference-results/fluid-openfoam_solid-solids4foam.tar.gz b/perpendicular-flap/reference-results/fluid-openfoam_solid-solids4foam.tar.gz index 1f60848fd..472c2a10b 100644 --- a/perpendicular-flap/reference-results/fluid-openfoam_solid-solids4foam.tar.gz +++ b/perpendicular-flap/reference-results/fluid-openfoam_solid-solids4foam.tar.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:29e4d0f83bc001b8ccd6eecda3b77f5b6a9b8b1c1dd36b42bbb0ae055181db6c -size 23231 +oid sha256:a01ad4eb389f6a11cb58b40c12e07ca35ae6cab02af01bdfb0f2de8318df8d2f +size 24065