From a77c3a2301cdc6ea220c3bac18b771fd42800687 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Wed, 7 May 2025 13:39:51 +0200 Subject: Stack smashing probably due to UB fixed --- c++/write_vtk.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'c++/write_vtk.hpp') diff --git a/c++/write_vtk.hpp b/c++/write_vtk.hpp index fec4ea5..294ec6d 100644 --- a/c++/write_vtk.hpp +++ b/c++/write_vtk.hpp @@ -31,6 +31,14 @@ struct lbm_vtk_writer> { } }; +template +struct lbm_vtk_writer> { + static saw::error_or apply(std::ostream& vtk_file, std::string_view name){ + vtk_file<<"VECTORS "< struct lbm_vtk_writer...>>> { template @@ -38,6 +46,7 @@ struct lbm_vtk_writer @@ -87,6 +96,7 @@ struct lbm_vtk_writer pd_size{1u}; // DIMENSIONS + { vtk_file << "DIMENSIONS "; for(saw::data i{0u}; i.get() < Desc::D; ++i){ -- cgit v1.2.3