Skip to content

Commit db77626

Browse files
committed
fix false time in multistep
1 parent bba3116 commit db77626

File tree

7 files changed

+6
-0
lines changed

7 files changed

+6
-0
lines changed

src/Core/Solver/Matrix_Verlet.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ function run_solver(solver_options::Dict{Any,Any},
262262
@views uNP1[active_nodes, :] = uN[active_nodes, :] .+
263263
dt .* vNP1[active_nodes, :]
264264
end
265+
265266
@timeit "apply BC" apply_bc_dirichlet(["Displacements", "Temperature"],
266267
bcs,
267268
time,
@@ -337,6 +338,8 @@ function run_solver(solver_options::Dict{Any,Any},
337338
#a+= + fexternal / density
338339
end
339340
end
341+
Data_Manager.set_current_time(time-dt)
342+
return result_files
340343
end
341344

342345
function f_int(K::AbstractMatrix{Float64}, u::AbstractVector{Float64},

src/Core/Solver/Matrix_linear_static.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ function run_solver(solver_options::Dict{Any,Any},
343343
barrier(comm)
344344
end
345345
end
346+
Data_Manager.set_current_time(time-dt)
346347
return result_files
347348
end
348349

src/Core/Solver/Static_solver.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ function run_solver(solver_options::Dict{Any,Any},
311311
# end
312312
barrier(comm)
313313
end
314+
Data_Manager.set_current_time(time-dt)
314315
return result_files
315316
end
316317

src/Core/Solver/Verlet_solver.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ function run_solver(solver_options::Dict{Any,Any},
403403
barrier(comm)
404404
end
405405
end
406+
Data_Manager.set_current_time(time-dt)
406407
return result_files
407408
end
408409

-156 KB
Binary file not shown.
436 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)