Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
albert-de-montserrat committed Nov 13, 2024
1 parent 70de2f1 commit 3306850
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/variational_stokes/Stokes2D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function _solve_VS!(
)
# apply boundary conditions
velocity2displacement!(stokes, dt)
free_surface_bcs!(stokes, flow_bcs, η, rheology, phase_ratios, dt, di)
# free_surface_bcs!(stokes, flow_bcs, η, rheology, phase_ratios, dt, di)
flow_bcs!(stokes, flow_bcs)
update_halo!(@velocity(stokes)...)
# end
Expand Down
4 changes: 2 additions & 2 deletions src/variational_stokes/VelocityKernels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ end
-d_xa(P, ϕ.center) + d_xa(τxx, ϕ.center) + d_yi(τxy, ϕ.vertex) -
av_xa(ρgx, ϕ.center)
)
Vx[i + 1, j + 1] += R_Vx * ηdτ / av_xa(ητ, ϕ.center)
Vx[i + 1, j + 1] += R_Vx * ηdτ / av_xa(ητ)
else
Rx[i, j] = zero(T)
Vx[i + 1, j + 1] = zero(T)
Expand All @@ -86,7 +86,7 @@ end
R_Vy =
-d_ya(P, ϕ.center) + d_ya(τyy, ϕ.center) + d_xi(τxy, ϕ.vertex) -
av_ya(ρgy, ϕ.center)
Vy[i + 1, j + 1] += R_Vy * ηdτ / av_ya(ητ, ϕ.center)
Vy[i + 1, j + 1] += R_Vy * ηdτ / av_ya(ητ)
else
Ry[i, j] = zero(T)
Vy[i + 1, j + 1] = zero(T)
Expand Down

0 comments on commit 3306850

Please sign in to comment.