From 698376951393a27b71e6d8d84c296da23bf1fb25 Mon Sep 17 00:00:00 2001 From: Ivan Utkin Date: Thu, 23 Nov 2023 19:29:45 +0100 Subject: [PATCH] Add missing sync --- src/Models/full_stokes/isothermal/isothermal.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Models/full_stokes/isothermal/isothermal.jl b/src/Models/full_stokes/isothermal/isothermal.jl index 0583133c..df7fa520 100644 --- a/src/Models/full_stokes/isothermal/isothermal.jl +++ b/src/Models/full_stokes/isothermal/isothermal.jl @@ -113,14 +113,14 @@ function advance_iteration!(model::IsothermalFullStokesModel, t, Δt; async=true Δ = NamedTuple{(:x, :y, :z)}(spacing(model.grid)) launch!(model.arch, model.grid, update_σ! => (Pr, τ, V, η, Δτ, Δ); - location=Center(), expand=1, boundary_conditions=model.boundary_conditions.stress, hide_boundaries, outer_width) + location=Center(), expand=1, boundary_conditions=model.boundary_conditions.stress, hide_boundaries, outer_width, async=false) launch!(model.arch, model.grid, update_V! => (V, Pr, τ, η, ρg, Δτ, model.grid, Δ); - location=Vertex(), boundary_conditions=model.boundary_conditions.velocity, hide_boundaries, outer_width) + location=Vertex(), boundary_conditions=model.boundary_conditions.velocity, hide_boundaries, outer_width, async=false) # rheology launch!(model.arch, model.grid, update_η! => (η, η_rh, η_rel, model.grid, model.fields); - location=Center(), boundary_conditions=model.boundary_conditions.rheology, hide_boundaries, outer_width) + location=Center(), boundary_conditions=model.boundary_conditions.rheology, hide_boundaries, outer_width, async=false) async || synchronize(backend(model.arch)) return