From 0d77c9879b4b31b975abc5ce7873b8156e25d24c Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Wed, 7 Oct 2026 18:27:16 +0200 Subject: Redoing stuff and breaking things --- modules/core/c++/fplbm.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'modules') 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 i{0u}; i < sub_steps; ++i){ - verlet_step_lambda(pi,one / sss); + if(sub_steps.get() > 0u){ + auto sss_inv = one / sss; + for(saw::data i{0u}; i < sub_steps; ++i){ + verlet_step_lambda(pi,sss_inv); + } } } }; -- cgit v1.3.1