diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-03-05 20:04:09 +0100 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-03-05 20:04:09 +0100 |
| commit | 507440cdf786f7a1a83bdf22371f1844910382fb (patch) | |
| tree | 5737d479d581894e8b2ed2bc4c9bb9346cc43a49 /lib/core/c++/boundary.hpp | |
| parent | c4226ba28f0bd783686e6b245f35738dc34cd644 (diff) | |
| download | libs-lbm-507440cdf786f7a1a83bdf22371f1844910382fb.tar.gz | |
Fixed ordering and somehow mistaking the wrongly assumed wrong pressure
boundary
Diffstat (limited to 'lib/core/c++/boundary.hpp')
| -rw-r--r-- | lib/core/c++/boundary.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/core/c++/boundary.hpp b/lib/core/c++/boundary.hpp index 0a4ff4d..d5f3022 100644 --- a/lib/core/c++/boundary.hpp +++ b/lib/core/c++/boundary.hpp @@ -135,7 +135,7 @@ public: for(saw::data<sch::UInt64> k{0u}; k < saw::data<sch::UInt64>{Descriptor::Q}; ++k){ auto c_k = dfi::directions[k.get()]; - if(c_k[0u]*known_dir >= 0){ + if(c_k[0u]*known_dir <= 0){ sum_df += dfs_old.at({k}); } } @@ -147,7 +147,7 @@ public: for(saw::data<sch::UInt64> k{0u}; k < saw::data<sch::UInt64>{Descriptor::Q}; ++k){ auto c_k = dfi::directions[k.get()]; - if(c_k[0u]*known_dir > 0){ + if(c_k[0u]*known_dir < 0){ sum_unknown_dfs += dfs_old.at({k}) * c_k[0u]; } } |
