void ISimulatorTester.Integrate(float4[] pos, float4[] vel, int numBodies, float deltaTime, float softeningSquared, float damping, int steps) { for (var i = 0; i < steps; i++) { CpuIntegrator.IntegrateNbodySystem(_haccel, pos, vel, numBodies, deltaTime, softeningSquared, damping); } }
void ISimulator.Integrate(deviceptr <float4> newPos, deviceptr <float4> oldPos, deviceptr <float4> vel, int numBodies, float deltaTime, float softeningSquared, float damping) { _worker.Gather(oldPos, _hpos, FSharpOption <int> .None, FSharpOption <int> .None); _worker.Gather(vel, _hvel, FSharpOption <int> .None, FSharpOption <int> .None); CpuIntegrator.IntegrateNbodySystem(_haccel, _hpos, _hvel, _numBodies, deltaTime, softeningSquared, damping); }