From 2ae8aaa474f888ed7a5a3810cd916977df6d0dcf Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Wed, 4 Feb 2026 10:44:40 +0100 Subject: Work on vtk write and added some vars --- lib/core/c++/stream.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/core/c++/stream.hpp') diff --git a/lib/core/c++/stream.hpp b/lib/core/c++/stream.hpp index d217373..8c0342b 100644 --- a/lib/core/c++/stream.hpp +++ b/lib/core/c++/stream.hpp @@ -18,7 +18,18 @@ public: template void apply(const saw::data& field, const saw::data>& index, saw::data time_step) const { + bool is_even = ((time_step.get() % 2) == 0); + auto& dfs_old_f = (is_even) ? field.template get<"dfs_old">() : field.template get<"dfs">(); + auto info_f = field.template get<"info">(); + + auto info_meta = info_f.get_dims(); + + bool border = false; + for(uint64_t i = 0u; i < Descriptor::D; ++i){ + auto ind_i = index.at({i}); + border |= (ind_i.get()) == 0u or (ind_i == info_meta.at({i})); + } } }; } -- cgit v1.2.3