Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
albert-de-montserrat committed Apr 4, 2024
1 parent 50753c1 commit 5263b13
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/stokes/Stokes2D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -620,8 +620,8 @@ function JustRelax.solve!(
dt,
θ_dτ,
)
# free_surface_bcs!(stokes.τ, flow_bcs)
@views stokes.τ.yy[:, end] .= stokes.P[:, end]
free_surface_bcs!(stokes)
# @views stokes.τ.yy[:, end] .= stokes.P[:, end]
@parallel center2vertex!(stokes.τ.xy, stokes.τ.xy_c)
update_halo!(stokes.τ.xy)

Expand All @@ -644,8 +644,7 @@ function JustRelax.solve!(
# apply boundary conditions
free_surface_bcs!(stokes, flow_bcs, η, rheology, phase_ratios, dt, di)
flow_bcs!(stokes, flow_bcs)

update_halo!(stokes.V.Vx, stokes.V.Vy)
update_halo!(@velocity(stokes)...)
end
end

Expand Down

0 comments on commit 5263b13

Please sign in to comment.