Skip to content

Commit

Permalink
Free surface stabilization switch (#122)
Browse files Browse the repository at this point in the history
* free surface stabilization switch

* format
  • Loading branch information
albert-de-montserrat authored Mar 25, 2024
1 parent 9f386c0 commit 71cac4f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/stokes/Stokes2D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,8 @@ function JustRelax.solve!(
viscosity_cutoff=(1e16, 1e24),
iterMax=50e3,
iterMin=1e2,
viscosity_relaxation=1e-3,
viscosity_relaxation=1e-2,
free_surface=false,
nout=500,
b_width=(4, 4, 0),
verbose=true,
Expand Down Expand Up @@ -622,7 +623,7 @@ function JustRelax.solve!(
ρg...,
ητ,
_di...,
dt,
dt * free_surface,
)
# apply boundary conditions
flow_bcs!(stokes, flow_bcs)
Expand All @@ -644,7 +645,7 @@ function JustRelax.solve!(
@stress(stokes)...,
ρg...,
_di...,
dt,
dt * free_surface,
)
# errs = maximum_mpi.((abs.(stokes.R.Rx), abs.(stokes.R.Ry), abs.(stokes.R.RP)))
errs = (
Expand Down

0 comments on commit 71cac4f

Please sign in to comment.