From db81d74c3959fded1c32fe4e95f2efeed04938ee Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Fri, 31 Oct 2025 14:25:09 +0100 Subject: Adding 3D poiseulle and using http fetching --- lib/c++/boundary.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/c++/boundary.hpp') diff --git a/lib/c++/boundary.hpp b/lib/c++/boundary.hpp index 5cc7705..c10784c 100644 --- a/lib/c++/boundary.hpp +++ b/lib/c++/boundary.hpp @@ -44,8 +44,8 @@ public: * Raw setup */ template - void apply(saw::data& field, const saw::data>& index, uint64_t time_step){ - bool is_even = ((time_step % 2u) == 0u); + void apply(saw::data& field, const saw::data>& index, saw::data time_step){ + bool is_even = ((time_step.get() % 2u) == 0u); // This is a ref auto& cell = field(index); @@ -88,10 +88,10 @@ public: {} template - void apply(saw::data& field, saw::data> index, uint64_t time_step){ + void apply(saw::data& field, saw::data> index, saw::data time_step){ using dfi = df_info; - bool is_even = ((time_step % 2) == 0); + bool is_even = ((time_step.get() % 2) == 0); auto& cell = field(index); auto& info = cell.template get<"info">(); -- cgit v1.2.3