From 659cbb5fec1fb0c8e1a63b29eba545924871aee7 Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Mon, 16 Sep 2024 16:15:56 +0200
Subject: [PATCH] [MeL/IO/XDMF] Add required param to XdmfData obj construction

---
 MeshLib/IO/XDMF/transformData.cpp | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/MeshLib/IO/XDMF/transformData.cpp b/MeshLib/IO/XDMF/transformData.cpp
index dca595a5bd1..e9ffb7b7b4a 100644
--- a/MeshLib/IO/XDMF/transformData.cpp
+++ b/MeshLib/IO/XDMF/transformData.cpp
@@ -192,9 +192,9 @@ std::optional<XdmfHdfData> transformAttribute(
     HdfData hdf = {data_ptr,  num_of_tuples, ui_global_components, name,
                    data_type, n_files,       chunk_size_bytes};
 
-    XdmfData xdmf = {num_of_tuples, ui_global_components, data_type,
-                     name,          mesh_item_type,       0,
-                     n_files};
+    XdmfData xdmf{num_of_tuples, ui_global_components, data_type,
+                  name,          mesh_item_type,       0,
+                  n_files,       std::nullopt};
 
     return XdmfHdfData{std::move(hdf), std::move(xdmf)};
 }
@@ -272,7 +272,7 @@ XdmfHdfData transformGeometry(MeshLib::Mesh const& mesh, double const* data_ptr,
     XdmfData const xdmf = {
         partition_dim, point_size,   MeshPropertyDataType::float64,
         name,          std::nullopt, 2,
-        n_files};
+        n_files,       std::nullopt};
 
     return XdmfHdfData{std::move(hdf), std::move(xdmf)};
 }
@@ -312,9 +312,14 @@ XdmfHdfData transformTopology(std::vector<int> const& values,
     HdfData const hdf = {
         values.data(), values.size(),   1, name, MeshPropertyDataType::int32,
         n_files,       chunk_size_bytes};
-    XdmfData const xdmf = {
-        values.size(), 1, MeshPropertyDataType::int32, name, std::nullopt, 3,
-        n_files};
+    XdmfData const xdmf{values.size(),
+                        1,
+                        MeshPropertyDataType::int32,
+                        name,
+                        std::nullopt,
+                        3,
+                        n_files,
+                        std::nullopt};
 
     return XdmfHdfData{std::move(hdf), std::move(xdmf)};
 }
-- 
GitLab