Skip to content

Commit

Permalink
fix Stokes3D
Browse files Browse the repository at this point in the history
  • Loading branch information
albert-de-montserrat committed Feb 19, 2024
1 parent acd3a10 commit 6cf180a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/stokes/Stokes2D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,6 @@ function JustRelax.solve!(

# solver loop
@copy stokes.P0 stokes.P
@copy stokes.P0 stokes.P
wtime0 = 0.0
θ = @zeros(ni...)
λ = @zeros(ni...)
Expand Down
3 changes: 3 additions & 0 deletions src/stokes/Stokes3D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import JustRelax: mean_mpi, norm_mpi, minimum_mpi, maximum_mpi, backend

include("../rheology/GeoParams.jl")
include("StressRotation.jl")
include("StressKernels.jl")
include("PressureKernels.jl")
include("VelocityKernels.jl")

Expand Down Expand Up @@ -460,6 +461,8 @@ function JustRelax.solve!(
stokes.τ.II,
@tensor_center(stokes.τ_o),
@strain(stokes),
@tensor_center(stokes.ε_pl),
stokes.EII_pl,
stokes.P,
θ,
η,
Expand Down
2 changes: 1 addition & 1 deletion src/stokes/StressKernels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ end
τ_old, # @ centers
ε, # @ vertices
ε_pl, # @ centers
EII, # accumulated plastic strain rate @ centers
EII, # accumulated plastic strain rate @ centers
P,
θ,
η,
Expand Down

0 comments on commit 6cf180a

Please sign in to comment.