Skip to content

Commit

Permalink
Simplify evolve loop
Browse files Browse the repository at this point in the history
  • Loading branch information
lxmota committed Feb 8, 2025
1 parent aeef876 commit 6d5fd7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/evolve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@ function evolve(sim::Simulation)
if stop_evolve(sim) == true
break
end
start_runtimer(sim)
sync_time(sim)
if typeof(sim) == SingleDomainSimulation
apply_bcs(sim)
end
advance(sim)
end_runtimer(sim)
write_step(sim)
end
finalize_writing(sim)
Expand Down Expand Up @@ -85,6 +83,7 @@ function advance(sim::SingleDomainSimulation)
end

function advance(sim::MultiDomainSimulation)
start_runtimer(sim)
update_transfer_operators(sim)
if sim.schwarz_controller.schwarz_contact == false
schwarz(sim)
Expand All @@ -103,6 +102,7 @@ function advance(sim::MultiDomainSimulation)
restore_stop_solutions(sim)
solve_contact(sim)
end
end_runtimer(sim)
end

function apply_ics(sim::SingleDomainSimulation)
Expand Down

0 comments on commit 6d5fd7d

Please sign in to comment.