Skip to content

Commit b9c59d3

Browse files
committed
refac
1 parent 0d084e7 commit b9c59d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Core/Solver/Verlet_solver.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ function run_solver(solver_options::Dict{Any,Any},
222222
max_damage::Float64 = 0
223223
damage_init::Bool = false
224224
rank = Data_Manager.get_rank()
225+
mpi_active = Data_Manager.get_mpi_active()
225226
iter = progress_bar(rank, nsteps, silent)
226227
#nodes::Vector{Int64} = Vector{Int64}(1:Data_Manager.get_nnodes())
227228

@@ -380,7 +381,7 @@ function run_solver(solver_options::Dict{Any,Any},
380381
end
381382
if !damage_init && max_damage > 0
382383
damage_init = true
383-
if rank == 0 && !silent
384+
if !mpi_active && !silent
384385
set_multiline_postfix(iter,
385386
"Damage initated in step $idt [$time s]!")
386387
end

0 commit comments

Comments
 (0)