Skip to content

Commit 727df1e

Browse files
committed
Use substep time delta
1 parent da328da commit 727df1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/pbat/gpu/vbd/VbdImpl.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
#include "pbat/gpu/DisableWarnings.h"
33
// clang-format on
44

5-
#include "VbdImpl.cuh"
65
#include "Kernels.cuh"
6+
#include "VbdImpl.cuh"
77
#include "pbat/gpu/common/Cuda.cuh"
88
#include "pbat/math/linalg/mini/Mini.h"
99
#include "pbat/sim/vbd/Kernels.h"
@@ -216,7 +216,7 @@ void VbdImpl::Step(GpuScalar dt, GpuIndex iterations, GpuIndex substeps, GpuScal
216216
thrust::device.on(mStream.handle()),
217217
thrust::make_counting_iterator<GpuIndex>(0),
218218
thrust::make_counting_iterator<GpuIndex>(nVertices),
219-
[xt = mPositionsAtT.Raw(), x = X.x.Raw(), v = mVelocities.Raw(), dt = dt] PBAT_DEVICE(
219+
[xt = mPositionsAtT.Raw(), x = X.x.Raw(), v = mVelocities.Raw(), dt = sdt] PBAT_DEVICE(
220220
auto i) {
221221
using pbat::sim::vbd::kernels::IntegrateVelocity;
222222
auto vtp1 =

0 commit comments

Comments
 (0)