Skip to content
Snippets Groups Projects
Commit 8684e182 authored by Christoph Rettinger's avatar Christoph Rettinger
Browse files

Fix in coupling timestep to pass function by reference

parent 3b9e4aa4
No related merge requests found
...@@ -47,7 +47,7 @@ public: ...@@ -47,7 +47,7 @@ public:
explicit TimeStep( const shared_ptr<StructuredBlockStorage> & blockStorage, explicit TimeStep( const shared_ptr<StructuredBlockStorage> & blockStorage,
const BlockDataID & bodyStorageID, const BlockDataID & bodyStorageID,
pe::cr::ICR & collisionResponse, pe::cr::ICR & collisionResponse,
boost::function<void (void)> synchronizeFunc, const boost::function<void (void)> & synchronizeFunc,
const real_t timeStep = real_t(1), const uint_t intermediateSteps = uint_c(1) ) const real_t timeStep = real_t(1), const uint_t intermediateSteps = uint_c(1) )
: timeStep_( timeStep ) : timeStep_( timeStep )
, intermediateSteps_( ( intermediateSteps == 0 ) ? uint_c(1) : intermediateSteps ) , intermediateSteps_( ( intermediateSteps == 0 ) ? uint_c(1) : intermediateSteps )
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment