Skip to content

Commit 8e78c6d

Browse files
committed
Apply a patch for SU2
1 parent e39a069 commit 8e78c6d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/tests/dockerfiles/ubuntu_2404/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ ARG SU2_VERSION
140140
USER precice
141141

142142
# Download and build SU2 (We could also use pre-built binaries from the SU2 releases)
143+
# The sed command applies a patch needed for Ubuntu 24.04.
143144
WORKDIR /home/precice
144145
RUN wget https://github.com/su2code/SU2/archive/refs/tags/v${SU2_VERSION}.tar.gz && \
145146
tar xvzf v${SU2_VERSION}.tar.gz && \
@@ -158,5 +159,6 @@ RUN git clone https://github.com/precice/su2-adapter.git && \
158159
git checkout ${SU2_ADAPTER_REF} &&\
159160
./su2AdapterInstall
160161
RUN cd "${SU2_HOME}" &&\
162+
sed -i '1s/^/#include <cstdint>\n/' SU2_CFD/src/output/filewriter/CParaviewXMLFileWriter.cpp &&\
161163
./meson.py build -Denable-pywrapper=true --prefix=$SU2_RUN &&\
162164
./ninja -C build install

0 commit comments

Comments
 (0)