diff --git a/tests/pe_coupling/momentum_exchange_method/SettlingSphereMEM.cpp b/tests/pe_coupling/momentum_exchange_method/SettlingSphereMEM.cpp index ed9c8da8cfdb28470feee2022e07ad3f299873af..9a8f53528aa3750c92b2f748c553fb26808f16a4 100644 --- a/tests/pe_coupling/momentum_exchange_method/SettlingSphereMEM.cpp +++ b/tests/pe_coupling/momentum_exchange_method/SettlingSphereMEM.cpp @@ -561,7 +561,7 @@ int main( int argc, char **argv ) timeloop.addFuncAfterTimeStep(setForceTorqueOnBodiesFromCont2, "Force setting"); // average the force/torque by scaling it with factor 1/2 (except in first timestep, there it is 1, which it is initially) - timeloop.addFuncAfterTimeStep( pe_coupling::ForceTorqueOnBodiesScaler(blocks, bodyStorageID, real_t(0.5)), "Force averaging"); + timeloop.addFuncAfterTimeStep( SharedFunctor<pe_coupling::ForceTorqueOnBodiesScaler>(forceScaler), "Force averaging"); timeloop.addFuncAfterTimeStep( setForceScalingFactorToHalf, "Force scaling adjustment" ); // swap containers diff --git a/tests/pe_coupling/momentum_exchange_method/SettlingSphereMEMStaticRefinement.cpp b/tests/pe_coupling/momentum_exchange_method/SettlingSphereMEMStaticRefinement.cpp index b8cbd96b2793d02b8c52bae95f38038e7263992d..aa9ef62e7ff6318f5fbde40653afdb820ad07281 100644 --- a/tests/pe_coupling/momentum_exchange_method/SettlingSphereMEMStaticRefinement.cpp +++ b/tests/pe_coupling/momentum_exchange_method/SettlingSphereMEMStaticRefinement.cpp @@ -634,7 +634,7 @@ int main( int argc, char **argv ) refinementTimestep->addPostStreamVoidFunction(lbm::refinement::FunctorWrapper(setForceTorqueOnBodiesFromCont2), "Force setting", finestLevel); // average the force/torque by scaling it with factor 1/2 (except in first timestep, there it is 1, which it is initially) - refinementTimestep->addPostStreamVoidFunction(lbm::refinement::FunctorWrapper(pe_coupling::ForceTorqueOnBodiesScaler(blocks, bodyStorageID, real_t(0.5))), "Force averaging", finestLevel); + refinementTimestep->addPostStreamVoidFunction(lbm::refinement::FunctorWrapper(SharedFunctor<pe_coupling::ForceTorqueOnBodiesScaler>(forceScaler)), "Force averaging", finestLevel); refinementTimestep->addPostStreamVoidFunction(lbm::refinement::FunctorWrapper(setForceScalingFactorToHalf), "Force scaling adjustment", finestLevel); // swap containers