Skip to content

Commit

Permalink
Fix indexing in free_surface_bcs! (#135)
Browse files Browse the repository at this point in the history
* fix indexing in free_surface_bcs!

* fix another incorrect index
  • Loading branch information
albert-de-montserrat authored Apr 27, 2024
1 parent f4518bc commit 2117f77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/boundaryconditions/BoundaryConditions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ end
function free_surface_bcs!(
stokes, bcs::FlowBoundaryConditions, η, rheology, phase_ratios, dt, di
)
indices_range(::Any, Vy) = @idx (size(Vy, 2) - 1)
indices_range(::Any, Vy) = @idx (size(Vy, 1) - 2)
indices_range(::Any, ::Any, Vz) = @idx (size(Vz, 1) - 2, size(Vz, 2) - 2)

V = @velocity(stokes)
Expand Down

0 comments on commit 2117f77

Please sign in to comment.