Skip to content

Commit

Permalink
remove dead argurment
Browse files Browse the repository at this point in the history
  • Loading branch information
albert-de-montserrat committed Apr 9, 2024
1 parent 1538b66 commit 103e20f
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/rheology/StressUpdate.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# inner kernel to compute the plastic stress update within Pseudo-Transient stress continuation
function _compute_τ_nonlinear!(
τ::NTuple{N1,T},
τII,
τ_old::NTuple{N1,T},
ε::NTuple{N1,T},
ε_pl::NTuple{N1,T},
Expand Down
2 changes: 0 additions & 2 deletions src/stokes/Stokes2D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,6 @@ function JustRelax.solve!(

@parallel (@idx ni) compute_τ_nonlinear!(
@tensor_center(stokes.τ),
stokes.τ.II,
@tensor(stokes.τ_o),
@strain(stokes),
@tensor_center(stokes.ε_pl),
Expand Down Expand Up @@ -605,7 +604,6 @@ function JustRelax.solve!(

@parallel (@idx ni) compute_τ_nonlinear!(
@tensor_center(stokes.τ),
stokes.τ.II,
@tensor_center(stokes.τ_o),
@strain(stokes),
@tensor_center(stokes.ε_pl),
Expand Down
2 changes: 0 additions & 2 deletions src/stokes/Stokes3D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ function JustRelax.solve!(

@parallel (@idx ni) compute_τ_nonlinear!(
@tensor_center(stokes.τ),
stokes.τ.II,
@tensor(stokes.τ_o),
@strain(stokes),
@tensor_center(stokes.ε_pl),
Expand Down Expand Up @@ -473,7 +472,6 @@ function JustRelax.solve!(
# if !cte_viscosity
@parallel (@idx ni) compute_τ_nonlinear!(
@tensor_center(stokes.τ),
stokes.τ.II,
@tensor_center(stokes.τ_o),
@strain(stokes),
@tensor_center(stokes.ε_pl),
Expand Down
6 changes: 2 additions & 4 deletions src/stokes/StressKernels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,6 @@ end

@parallel_indices (I...) function compute_τ_nonlinear!(
τ, # @ centers
τII, # @ centers
τ_old, # @ centers
ε, # @ vertices
ε_pl, # @ centers
Expand Down Expand Up @@ -405,7 +404,7 @@ end
plastic_parameters = (; is_pl, C, sinϕ, cosϕ, η_reg, volume)

_compute_τ_nonlinear!(
τ, τII, τ_old, ε, ε_pl, P, ηij, η_vep, λ, dτ_r, _Gdt, plastic_parameters, I...
τ, τ_old, ε, ε_pl, P, ηij, η_vep, λ, dτ_r, _Gdt, plastic_parameters, I...
)

# augmented pressure with plastic volumetric strain over pressure
Expand All @@ -417,7 +416,6 @@ end
# multi phase visco-elasto-plastic flow, where phases are defined in the cell center
@parallel_indices (I...) function compute_τ_nonlinear!(
τ, # @ centers
τII, # @ centers
τ_old, # @ centers
ε, # @ vertices
ε_pl, # @ centers
Expand Down Expand Up @@ -447,7 +445,7 @@ end
plastic_parameters = (; is_pl, C, sinϕ, cosϕ, η_reg, volume)

_compute_τ_nonlinear!(
τ, τII, τ_old, ε, ε_pl, P, ηij, η_vep, λ, dτ_r, _Gdt, plastic_parameters, I...
τ, τ_old, ε, ε_pl, P, ηij, η_vep, λ, dτ_r, _Gdt, plastic_parameters, I...
)
# augmented pressure with plastic volumetric strain over pressure
@inbounds θ[I...] = P[I...] + (isinf(K) ? 0.0 : K * dt * λ[I...] * sinψ)
Expand Down

0 comments on commit 103e20f

Please sign in to comment.