From 0e0da21fdadb2b924d42bf21ac6c881cf1abcf63 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Thu, 14 Aug 2025 15:57:12 +0200 Subject: End of day, attempts at utilization --- examples/poiseulle_particles_channel_2d.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'examples/poiseulle_particles_channel_2d.cpp') diff --git a/examples/poiseulle_particles_channel_2d.cpp b/examples/poiseulle_particles_channel_2d.cpp index 9498ba7..902a19e 100644 --- a/examples/poiseulle_particles_channel_2d.cpp +++ b/examples/poiseulle_particles_channel_2d.cpp @@ -451,9 +451,8 @@ void couple_particles_to_lattice( // If neighbour is wall, then add force pushing the particle away if(n_info.get() <= 1u){ // add to p_acc - p_acc.at({{0u}}) = p_acc.at({{0u}}) + saw::data{10 * dfi::directions[dfi::opposite_index[k.get()]][0u]}.template cast_to(); - p_acc.at({{1u}}) = p_acc.at({{1u}}) + saw::data{10 * dfi::directions[dfi::opposite_index[k.get()]][1u]}.template cast_to(); - ; + p_acc.at({{0u}}) = p_acc.at({{0u}}) - saw::data{10 * dfi::directions[dfi::opposite_index[k.get()]][0u]}.template cast_to(); + p_acc.at({{1u}}) = p_acc.at({{1u}}) - saw::data{10 * dfi::directions[dfi::opposite_index[k.get()]][1u]}.template cast_to(); } } /// 2. Add force pushing away from wall -- cgit v1.2.3