From ba9c23e4177ab9309f69155601578b118b2fd782 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Wed, 4 Feb 2026 16:28:48 +0100 Subject: Weird missing vtk writes --- lib/core/c++/equilibrium.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/core/c++/equilibrium.hpp') diff --git a/lib/core/c++/equilibrium.hpp b/lib/core/c++/equilibrium.hpp index bb55d00..7d1324e 100644 --- a/lib/core/c++/equilibrium.hpp +++ b/lib/core/c++/equilibrium.hpp @@ -5,7 +5,7 @@ namespace kel { namespace lbm { template -saw::data> equilibrium(saw::data rho, saw::data> vel){ +saw::data> equilibrium(saw::data> rho, saw::data> vel){ using dfi = df_info; saw::data> eq; @@ -17,7 +17,7 @@ saw::data> equilibrium(saw::data rho, saw:: // Velocity * Velocity meaning || vel ||_2^2 or _2 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); + vel_vel = vel_vel + vel.at({{j}}) * vel.at({{j}}); } /** @@ -27,13 +27,13 @@ saw::data> equilibrium(saw::data rho, saw:: saw::data vel_c{}; for(uint64_t j = 0u; j < Descriptor::D; ++j){ // _2 - vel_c = vel_c + (vel.at(j) * saw::data{static_cast::type>(dfi::directions[i][j])}); + vel_c = vel_c + (vel.at({{j}}) * saw::data{static_cast::type>(dfi::directions[i][j])}); } auto vel_c_cs2 = vel_c * saw::data{dfi::inv_cs2}; eq.at(i).set( - dfi::weights[i] * rho.get() * + dfi::weights[i] * rho.at({}).get() * ( 1.0 + vel_c_cs2.get() -- cgit v1.2.3