diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-09-03 18:04:36 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-09-03 18:04:36 +0200 |
commit | 616b0011c3638eceaae8890c3a66037625587f1d (patch) | |
tree | 0487d2ddddcaedaa3006fd83ddfaf6520c41f419 /examples/poiseulle_particles_channel_2d.cpp | |
parent | dd90f1efc84a5f0d92e97fce6085763697092eae (diff) |
Error in guo forcing seems to persist
Some debug output left there, but there's no force. Might be that the
higher precision is impacting this
Diffstat (limited to 'examples/poiseulle_particles_channel_2d.cpp')
-rw-r--r-- | examples/poiseulle_particles_channel_2d.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/poiseulle_particles_channel_2d.cpp b/examples/poiseulle_particles_channel_2d.cpp index e495043..fed78b2 100644 --- a/examples/poiseulle_particles_channel_2d.cpp +++ b/examples/poiseulle_particles_channel_2d.cpp @@ -643,7 +643,9 @@ int main(int argc, char** argv){ compute_rho_u<sch::T,sch::D2Q9>(dfs,rho,vel); rho = rho * saw::data<sch::T>{dfi::cs2}; - force = + for(uint64_t d = 0u; d < sch::D2Q9::D; ++d){ + force.at({d}) = cell.template get<"force">()({d}); + } part_mask.set(0u); }, {{0u,0u}}, meta); @@ -683,7 +685,7 @@ int main(int argc, char** argv){ // Cast down to get lower corner. // Before casting shift by 0.5 for closest pick saw::data<sch::FixedArray<sch::UInt64,2u>> p_cell_pos {{ - static_cast<uint64_t>(p_pos_lie.at(saw::data<T>{{0u}}).get()+0.5), + static_cast<uint64_t>(p_pos_lie.at({{0u}}).get()+0.5), static_cast<uint64_t>(p_pos_lie.at({{1u}}).get()+0.5) }}; |