Skip to content

Commit

Permalink
Merge pull request #233 from PTsolvers/paellig-patch-2
Browse files Browse the repository at this point in the history
Add missing Pressure function
  • Loading branch information
aelligp authored Sep 11, 2024
2 parents caf9e12 + 91771ee commit 8c215b9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/stokes/PressureKernels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,25 @@ end
return nothing
end

@parallel_indices (I...) function compute_P_kernel!(
P,
P0,
RP,
∇V,
η,
rheology::NTuple{N,MaterialParams},
phase_ratio::C,
dt,
r,
θ_dτ,
::Nothing,
ϕ,
) where {N,C<:JustRelax.CellArray}
K = fn_ratio(get_bulk_modulus, rheology, phase_ratio[I...])
RP[I...], P[I...] = _compute_P!(P[I...], P0[I...], ∇V[I...], η[I...], K, dt, r, θ_dτ)
return nothing
end

@parallel_indices (I...) function compute_P_kernel!(
P,
P0,
Expand Down

0 comments on commit 8c215b9

Please sign in to comment.