From abeea9920c11231ed24db00e9f68b4490c12a61b Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Thu, 10 Apr 2025 15:21:55 +0200 Subject: Reworking from AoS to SoA for data handling --- c++/equilibrium.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'c++/equilibrium.hpp') diff --git a/c++/equilibrium.hpp b/c++/equilibrium.hpp index 8342ed4..326fc9e 100644 --- a/c++/equilibrium.hpp +++ b/c++/equilibrium.hpp @@ -9,7 +9,11 @@ saw::data> equilibrium(saw::data rho, using dfi = df_info; saw::data> eq; - saw::data vel_vel{}; + // ^ + // 0.0 + // / \ + // | | + saw::data vel_vel{0.0}; for(uint64_t j = 0u; j < Descriptor::D; ++j){ vel_vel = vel_vel + vel.at(j) * vel.at(j); } -- cgit v1.2.3