diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-04-10 15:21:55 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-04-10 15:21:55 +0200 |
commit | abeea9920c11231ed24db00e9f68b4490c12a61b (patch) | |
tree | 8cbcc1053a0b69c12c59e8dfdbe576d13520240d /c++/equilibrium.hpp | |
parent | 4ffcce338176350465dbd4245ad443b766d196f0 (diff) |
Reworking from AoS to SoA for data handling
Diffstat (limited to 'c++/equilibrium.hpp')
-rw-r--r-- | c++/equilibrium.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
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<sch::FixedArray<T, Descriptor::Q>> equilibrium(saw::data<sch::T> rho, using dfi = df_info<T, Descriptor>; saw::data<sch::FixedArray<T,Descriptor::Q>> eq; - saw::data<T> vel_vel{}; + // ^ + // 0.0 + // / \ + // | | + saw::data<T> vel_vel{0.0}; for(uint64_t j = 0u; j < Descriptor::D; ++j){ vel_vel = vel_vel + vel.at(j) * vel.at(j); } |