summaryrefslogtreecommitdiff
path: root/tests/vtk_write.cpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2025-05-07 13:39:51 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2025-05-07 13:39:51 +0200
commita77c3a2301cdc6ea220c3bac18b771fd42800687 (patch)
tree54693f4e8593d6d145d9366a996185c7b4a00f28 /tests/vtk_write.cpp
parentd6e2d808c4c2387f65f9d0de3431cb574d72da70 (diff)
Stack smashing probably due to UB fixed
Diffstat (limited to 'tests/vtk_write.cpp')
-rw-r--r--tests/vtk_write.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/vtk_write.cpp b/tests/vtk_write.cpp
index 0fcc169..5d61580 100644
--- a/tests/vtk_write.cpp
+++ b/tests/vtk_write.cpp
@@ -38,7 +38,7 @@ SAW_TEST("VTK Write test example"){
std::stringstream sstream;
- saw::data<sch::CellField<sch::D2Q5,sch::CellStruct<sch::D2Q5>>> cells;
+ saw::data<sch::CellField<sch::D2Q5,sch::CellStruct<sch::D2Q5>>> cells{{{2u,2u}}};
auto eov = lbm::impl::lbm_vtk_writer<sch::CellField<sch::D2Q5,sch::CellStruct<sch::D2Q5>>>::apply(sstream, cells);
SAW_EXPECT(eov.is_value(), "vtk writer failed to write");