Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JTHesse committed Apr 13, 2024
1 parent 796ba0f commit 9b73013
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/Core/Solver/Verlet.jl
Original file line number Diff line number Diff line change
Expand Up @@ -468,19 +468,23 @@ function run_solver(solver_options::Dict{String,Any}, block_nodes::Dict{Int64,Ve
if rank == 0 && solver_options["Damage Models"] #TODO gather value
max_damage = maximum(damage[find_active(active[1:nnodes])])
if max_damage > max_cancel_damage
set_multiline_postfix(iter, "Maximum damage reached!")
if !silent
set_multiline_postfix(iter, "Maximum damage reached!")
end
datamanager.set_cancel(true)
end
if !damage_init && max_damage > 0
damage_init = true
set_multiline_postfix(iter, "Bond damage initiated!")
if !silent
set_multiline_postfix(iter, "Bond damage initiated!")
end
end
end
@timeit to "write_results" result_files = write_results(result_files, start_time + step_time, max_damage, outputs, datamanager)
# for file in result_files
# flush(file)
# end
if rank == 0 && datamanager.get_cancel()
if rank == 0 && !silent && datamanager.get_cancel()
set_multiline_postfix(iter, "Simulation canceled!")
break
end
Expand Down

0 comments on commit 9b73013

Please sign in to comment.