Skip to content

Commit fbda566

Browse files
authored
Merge pull request #573 from Deltares/main
Merge main into consolidation branch 5
2 parents 22018b4 + 64418dc commit fbda566

File tree

87 files changed

+786
-424
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+786
-424
lines changed

ci/dockerfiles/linux/third-party-libs.Dockerfile

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,123 @@ cmake --install build
691691
popd
692692
EOF-precice
693693

694+
695+
FROM base AS vtk
696+
697+
ARG DEBUG
698+
ARG CACHE_ID_SUFFIX
699+
700+
RUN --mount=type=cache,target=/var/cache/src/,id=precice-${CACHE_ID_SUFFIX} <<"EOF-vtk"
701+
source /etc/bashrc
702+
set -eo pipefail
703+
704+
URL='https://vtk.org/files/release/9.5/VTK-9.5.2.tar.gz'
705+
BASEDIR='VTK-9.5.2'
706+
if [[ -d "/var/cache/src/${BASEDIR}" ]]; then
707+
echo "CACHED ${BASEDIR}"
708+
else
709+
echo "Fetching ${URL}..."
710+
wget --quiet --output-document=- "$URL" | tar --extract --gzip --file=- --directory='/var/cache/src'
711+
fi
712+
713+
pushd "/var/cache/src/${BASEDIR}"
714+
715+
[[ $DEBUG = "0" ]] && BUILD_TYPE="Release" || BUILD_TYPE="Debug"
716+
717+
cmake -S . -B build \
718+
-D VTK_WRAP_PYTHON="OFF" \
719+
-D VTK_USE_MPI="ON" \
720+
-D CMAKE_BUILD_TYPE=$BUILD_TYPE \
721+
-D CMAKE_INSTALL_PREFIX=/usr/local \
722+
-D CMAKE_INSTALL_LIBDIR=lib \
723+
-D VTK_GROUP_ENABLE_Imaging=NO \
724+
-D VTK_GROUP_ENABLE_Views=NO \
725+
-D VTK_GROUP_ENABLE_Web=NO \
726+
-D VTK_GROUP_ENABLE_Qt=NO \
727+
-D VTK_GROUP_ENABLE_Rendering=DONT_WANT \
728+
-D VTK_GROUP_ENABLE_MPI=YES \
729+
-D BUILD_TESTING=OFF
730+
731+
cmake --build build --parallel $(nproc)
732+
cmake --install build
733+
popd
734+
EOF-vtk
735+
736+
737+
FROM base AS aste
738+
739+
ARG DEBUG
740+
ARG CACHE_ID_SUFFIX
741+
742+
COPY --from=libxml2 --link /usr/local/ /usr/local/
743+
COPY --from=eigen --link /usr/local/ /usr/local/
744+
COPY --from=boost --link /usr/local/ /usr/local/
745+
COPY --from=precice --link /usr/local/ /usr/local/
746+
COPY --from=vtk --link /usr/local/ /usr/local/
747+
748+
RUN --mount=type=cache,target=/var/cache/src/,id=precice-${CACHE_ID_SUFFIX} <<"EOF-aste"
749+
source /etc/bashrc
750+
set -eo pipefail
751+
752+
dnf --assumeyes install patch
753+
754+
URL='https://github.com/precice/aste/archive/refs/tags/v3.3.0.tar.gz'
755+
BASEDIR='aste-3.3.0'
756+
if [[ -d "/var/cache/src/${BASEDIR}" ]]; then
757+
echo "CACHED ${BASEDIR}"
758+
else
759+
echo "Fetching ${URL}..."
760+
wget --quiet --output-document=- "$URL" | tar --extract --gzip --file=- --directory='/var/cache/src'
761+
fi
762+
763+
pushd "/var/cache/src/${BASEDIR}"
764+
765+
# Patch aste CmakeList.txt to not look for the system component of boost (it is no longer needed)
766+
cat << EOF_no_boost_system > no_boost_system.patch
767+
--- CMakeLists.txt
768+
+++ CMakeLists.txt
769+
@@ -28,7 +28,7 @@
770+
771+
find_package(precice 3.0 REQUIRED)
772+
773+
-find_package(Boost 1.71.0 CONFIG REQUIRED COMPONENTS log log_setup system program_options unit_test_framework)
774+
+find_package(Boost 1.83.0 CONFIG REQUIRED COMPONENTS log log_setup program_options unit_test_framework)
775+
776+
# Initial attempt to find VTK without specifying components (only supported for VTK9)
777+
find_package(VTK QUIET)
778+
@@ -63,7 +63,6 @@
779+
Boost::log
780+
Boost::log_setup
781+
Boost::program_options
782+
- Boost::system
783+
Boost::thread
784+
Boost::unit_test_framework
785+
MPI::MPI_CXX
786+
@@ -86,7 +85,6 @@
787+
Boost::log
788+
Boost::log_setup
789+
Boost::program_options
790+
- Boost::system
791+
Boost::thread
792+
Boost::unit_test_framework
793+
MPI::MPI_CXX
794+
EOF_no_boost_system
795+
796+
patch -p0 < no_boost_system.patch
797+
798+
799+
[[ $DEBUG = "0" ]] && BUILD_TYPE="Release" || BUILD_TYPE="Debug"
800+
801+
cmake -S . -B build \
802+
-D CMAKE_BUILD_TYPE=$BUILD_TYPE \
803+
-D CMAKE_INSTALL_PREFIX=/usr/local \
804+
-D CMAKE_INSTALL_LIBDIR=lib
805+
806+
cmake --build build --parallel $(nproc)
807+
cmake --install build
808+
popd
809+
EOF-aste
810+
694811
FROM base AS all
695812

696813
RUN set -eo pipefail && \
@@ -713,3 +830,5 @@ COPY --from=esmf --link /usr/local/ /usr/local/
713830
COPY --from=boost --link /usr/local/ /usr/local/
714831
COPY --from=googletest --link /usr/local/ /usr/local/
715832
COPY --from=precice --link /usr/local/ /usr/local/
833+
COPY --from=vtk --link /usr/local/ /usr/local/
834+
COPY --from=aste --link /usr/local/ /usr/local/

ci/python/ci_tools/verschilanalyse/util/verschillentool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def from_verschillentool_workbook(workbook: Workbook, output_type: OutputType) -
192192
}
193193

194194
first_col = maxima_sheet.min_column - 1
195-
last_col = maxima_sheet.max_column - 1
195+
last_col = maxima_sheet.max_column - 2
196196

197197
maxima_dict = {
198198
str(maxima_sheet[row][first_col].value).split(maxsplit=1)[0]: float(

ci/python/tests/helpers/verschilanalyse.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ def make_verschillentool_workbook(
133133
# Leave maxima sheet empty for now.
134134
maxima_sheet = workbook.create_sheet(title="Maxima")
135135
for row in [
136-
["", "Time", "Maximum value over all times"],
137-
["sea_surface_height (m)", "2-1-2035 11:00:00", water_level_stats.max],
138-
["sea_water_speed (m s-1)", "2-1-2035 06:00:00", flow_velocity_stats.max],
136+
["", "Time", "Maximum value over all times", "layers of max"],
137+
["sea_surface_height (m)", "2-1-2035 11:00:00", water_level_stats.max, "2D variable"],
138+
["sea_water_speed (m s-1)", "2-1-2035 06:00:00", flow_velocity_stats.max, "2D variable"],
139139
]:
140140
maxima_sheet.append(row)
141141

ci/teamcity/Delft3D/PinAndTag.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ object PinAndTag : BuildType({
3434

3535
params {
3636
param("release_version", "%dep.${Publish.id}.release_version%")
37+
param("DIMRset_ver", "%dep.${Publish.id}.release_version%")
3738
param("dimrbakker_username", DslContext.getParameter("dimrbakker_username"))
3839
password("dimrbakker_password", DslContext.getParameter("dimrbakker_password"))
3940
password("dimrbakker_personal_access_token", DslContext.getParameter("dimrbakker_personal_access_token"))

ci/teamcity/Delft3D/ciUtilities/RunBashBatonUtilities.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ object RunBashBatonUtilities : BuildType({
4848
val joinedTargetPaths = targetPaths.joinToString(" ")
4949

5050
steps {
51-
mergeTargetBranch {}
52-
5351
script {
5452
name = "Display versions"
5553
scriptContent = """

ci/teamcity/Delft3D/ciUtilities/TestBenchValidation.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ object TestBenchValidation : BuildType({
7070
}
7171

7272
steps {
73-
mergeTargetBranch {}
7473
dockerCommand {
7574
name = "Run validation"
7675
commandType = other {

ci/teamcity/Delft3D/ciUtilities/TestFortranStyler.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ object TestFortranStyler : BuildType({
4949
}
5050

5151
steps {
52-
mergeTargetBranch {}
5352
python {
5453
name = "Run unit tests"
5554
workingDir = "tools/deltares_fortran_styler"

ci/teamcity/Delft3D/ciUtilities/TestPythonCiTools.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ object TestPythonCiTools : BuildType({
5151
}
5252

5353
steps {
54-
mergeTargetBranch {}
5554
python {
5655
name = "Check code formatting"
5756
workingDir = "ci/python"

ci/teamcity/Delft3D/linux/build.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ object LinuxBuild : BuildType({
5454
}
5555

5656
steps {
57-
mergeTargetBranch {}
5857
script {
5958
name = "Add version attributes"
6059
workingDir = "./src/version_includes"

ci/teamcity/Delft3D/linux/build2D3DSinglePrecission.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ object LinuxBuild2D3DSP : BuildType({
4545
}
4646

4747
steps {
48-
mergeTargetBranch {}
4948
script {
5049
name = "Add version attributes"
5150
workingDir = "./src/version_includes"

0 commit comments

Comments
 (0)