Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
albert-de-montserrat committed Nov 20, 2023
1 parent 3ccaea4 commit 0b4ced5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/thermal_diffusion/MetaDiffusion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -184,17 +184,15 @@ function make_PTthermal_struct!()
θr_dτ, dτ_ρ, rheology, args, max_lxyz, Vpdτ, _dt, Idx::Vararg{Int,N}
) where {N}
args_ij = (; T=args.T[Idx...], P=args.P[Idx...])

ρCp = JustRelax.compute_ρCp(rheology, args_ij)
_K = inv(compute_conductivity(rheology, args_ij))

_Re = inv+ * π + ρCp * max_lxyz^2 * _K * _dt)) # Numerical Reynolds number
θr_dτ[Idx...] = max_lxyz / Vpdτ * _Re
dτ_ρ[Idx...] = Vpdτ * max_lxyz * _K * _Re

return nothing
end

end

end

0 comments on commit 0b4ced5

Please sign in to comment.