From ba9c23e4177ab9309f69155601578b118b2fd782 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Wed, 4 Feb 2026 16:28:48 +0100 Subject: Weird missing vtk writes --- lib/core/c++/write_vtk.hpp | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'lib/core/c++/write_vtk.hpp') diff --git a/lib/core/c++/write_vtk.hpp b/lib/core/c++/write_vtk.hpp index e84cf9d..3c60a66 100644 --- a/lib/core/c++/write_vtk.hpp +++ b/lib/core/c++/write_vtk.hpp @@ -100,6 +100,8 @@ struct lbm_vtk_writer> { } } + vtk_file<<"\n"; + return saw::make_void(); } }; @@ -129,6 +131,21 @@ struct lbm_vtk_writer> { } }; +template +struct lbm_vtk_writer> { + static saw::error_or apply_header(std::ostream& vtk_file, std::string_view name){ + vtk_file<<"SCALARS "< apply(std::ostream& vtk_file, const saw::data>& field){ + // vtk_file<<"VECTORS "< struct lbm_vtk_writer,Keys>...>> final { template @@ -176,7 +193,6 @@ struct lbm_vtk_writer, static_assert(saw::ct_multiply::value > 0u, "Invalid Dim size resulting in length 0u"); for(saw::data i{0u}; i.get() < sizeof...(Dims); ++i){ - pd_size = pd_size * meta.at(i); vtk_file << " " << meta.at(i).get(); } for(saw::data i{sizeof...(Dims)}; i.get() < 3u; ++i){ -- cgit v1.2.3