summaryrefslogtreecommitdiff
path: root/modules/core
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2026-10-07 18:27:16 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2026-10-07 18:27:16 +0200
commit0d77c9879b4b31b975abc5ce7873b8156e25d24c (patch)
tree021c25ff88a2eff5f271e4e13cb89b4036c56175 /modules/core
parent8f9f0cdc2c04ee2eaba61b8ea93a189b75a7bc9c (diff)
downloadlibs-lbm-0d77c9879b4b31b975abc5ce7873b8156e25d24c.tar.gz
Redoing stuff and breaking things
Diffstat (limited to 'modules/core')
-rw-r--r--modules/core/c++/fplbm.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/core/c++/fplbm.hpp b/modules/core/c++/fplbm.hpp
index aefc568..b141cae 100644
--- a/modules/core/c++/fplbm.hpp
+++ b/modules/core/c++/fplbm.hpp
@@ -230,8 +230,11 @@ public:
auto& pirb_acc = pirb.template get<"acceleration">();
pirb_acc = global_force_ + force_p / (pg.template get<"total_mass">().at({}));
- for(saw::data<sch::UInt64> i{0u}; i < sub_steps; ++i){
- verlet_step_lambda<T,Descriptor::D>(pi,one / sss);
+ if(sub_steps.get() > 0u){
+ auto sss_inv = one / sss;
+ for(saw::data<sch::UInt64> i{0u}; i < sub_steps; ++i){
+ verlet_step_lambda<T,Descriptor::D>(pi,sss_inv);
+ }
}
}
};