Skip to content

Commit 51e51c9

Browse files
committed
Set acceleration to zero. Fixes #149
1 parent ec19c9e commit 51e51c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/time_integrator.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,8 @@ function predict(integrator::Newmark, solver::Solver, model::SolidMechanics)
245245
v_pre[free] = v[free] += (1.0 - γ) * Δt * a[free]
246246
u_pre[fixed] = u[fixed]
247247
v_pre[fixed] = v[fixed]
248+
# Set acceleration consistent with predicted displacement (u = u_pre → a = 0)
249+
a[free] .= 0.0
248250
copy_solution_source_to_targets(integrator, solver, model)
249251
return nothing
250252
end

0 commit comments

Comments
 (0)