Skip to content

Commit f2ddfcf

Browse files
committed
Restore pT equilibrium after phase depletion
1 parent d74cc37 commit f2ddfcf

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/common/m_phase_change.fpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ contains
137137
q_cons_vf(vp + eqn_idx%cont%beg - 1)%sf(j, k, l) = m2
138138

139139
call s_infinite_ptg_relaxation_k(j, k, l, pS, rhoe, q_cons_vf, TS)
140+
141+
if (q_cons_vf(lp + eqn_idx%cont%beg - 1)%sf(j, k, &
142+
& l) == 0.0_wp .or. q_cons_vf(vp + eqn_idx%cont%beg - 1)%sf(j, k, l) == 0.0_wp) then
143+
call s_infinite_pt_relaxation_k(j, k, l, 2, pS, p_infpT, q_cons_vf, rhoe, TS)
144+
end if
140145
end if
141146

142147
! Calculations AFTER equilibrium

0 commit comments

Comments
 (0)