From 4968da9a05df5c10fb1f10655189ae251b38f92b Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Wed, 30 Jul 2025 18:04:13 +0200 Subject: Way too many changes --- c++/write_vtk.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'c++/write_vtk.hpp') diff --git a/c++/write_vtk.hpp b/c++/write_vtk.hpp index 40597fd..f81136a 100644 --- a/c++/write_vtk.hpp +++ b/c++/write_vtk.hpp @@ -7,6 +7,7 @@ #include "descriptor.hpp" #include +#include namespace kel { namespace lbm { @@ -162,10 +163,9 @@ struct lbm_vtk_writer...> , } template -saw::error_or write_vtk_file(const std::string_view file_name, const saw::data& field){ +saw::error_or write_vtk_file(const std::filesystem::path& file_name, const saw::data& field){ - std::string vtk_file_name{file_name}; - std::ofstream vtk_file{vtk_file_name}; + std::ofstream vtk_file{file_name}; if(!vtk_file.is_open()){ return saw::make_error("Could not open file."); -- cgit v1.2.3