Skip to content

Commit

Permalink
udpate JP
Browse files Browse the repository at this point in the history
  • Loading branch information
aelligp committed Sep 25, 2024
1 parent 605111f commit 055fe34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sill_2D_OM.jl
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function main2D(igg; ar=8, ny=16, nx=ny*8, figdir="figs2D", do_vtk =false)
phases_dev = PTArray(backend_JR)(phases_GMG)
phase_ratios = PhaseRatios(backend, length(rheology), ni);
init_phases!(pPhases, phases_dev, particles, xvi)
phase_ratios_center!(phase_ratios, particles, xci, pPhases)
update_phase_ratios!(phase_ratios, particles, xci, xvi, pPhases)

thermal = ThermalArrays(backend_JR, ni)
@views thermal.T[2:end-1, :] .= PTArray(backend_JR)(nondimensionalize(T_GMG.*K, CharDim))
Expand Down Expand Up @@ -299,7 +299,7 @@ function main2D(igg; ar=8, ny=16, nx=ny*8, figdir="figs2D", do_vtk =false)
# check if we need to inject particles
inject_particles_phase!(particles, pPhases, (pT, ), (T_WENO,), xvi)
# update phase ratios
phase_ratios_center!(phase_ratios, particles, xci, pPhases)
update_phase_ratios!(phase_ratios, particles, xci, xvi, pPhases)
@show it += 1
t += dt
@show extrema(thermal.T)
Expand Down

0 comments on commit 055fe34

Please sign in to comment.