summaryrefslogtreecommitdiff
path: root/c++/write_vtk.hpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2025-07-30 18:04:13 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2025-07-30 18:04:13 +0200
commit4968da9a05df5c10fb1f10655189ae251b38f92b (patch)
tree3f8fa3d1d4950e9969897138d904854189bdaab8 /c++/write_vtk.hpp
parentd9fb04fe614c67f5a7850fc3f32338757b1b2987 (diff)
Way too many changes
Diffstat (limited to 'c++/write_vtk.hpp')
-rw-r--r--c++/write_vtk.hpp6
1 files changed, 3 insertions, 3 deletions
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 <fstream>
+#include <filesystem>
namespace kel {
namespace lbm {
@@ -162,10 +163,9 @@ struct lbm_vtk_writer<sch::Array<sch::Struct<sch::Member<StructT,StructN>...> ,
}
template<typename Struct>
-saw::error_or<void> write_vtk_file(const std::string_view file_name, const saw::data<Struct>& field){
+saw::error_or<void> write_vtk_file(const std::filesystem::path& file_name, const saw::data<Struct>& 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<saw::err::critical>("Could not open file.");