Merge commit 'e904f5b730e622046aedacf704a6e888654c7517'

This commit is contained in:
Darth Vader 2020-09-24 04:31:32 +00:00
commit 3cf119c58a

View File

@ -3072,7 +3072,7 @@ diffuse_implicit(LDBLE DDt, int stagnant)
} }
// reduce oscillations in the column-boundary cells, but not for H and O, and current_A is not adjusted... // reduce oscillations in the column-boundary cells, but not for H and O, and current_A is not adjusted...
if (icell == il1 - incr && dV_dcell * ct[0].m_s[cp].charge < 0 && strcmp(ct[0].m_s[cp].name, "H") && strcmp(ct[0].m_s[cp].name, "O") && c > 3 && mixrun > 1) if (icell == il1 - incr && ct[0].m_s != NULL && dV_dcell * ct[0].m_s[cp].charge < 0 && strcmp(ct[0].m_s[cp].name, "H") && strcmp(ct[0].m_s[cp].name, "O") && c > 3 && mixrun > 1)
{ {
dummy = Utilities::Rxn_find(Rxn_solution_map, 0)->Get_totals()[ct[0].m_s[cp].name] / ct[0].kgw * (1 - ct[0].dl_s); dummy = Utilities::Rxn_find(Rxn_solution_map, 0)->Get_totals()[ct[0].m_s[cp].name] / ct[0].kgw * (1 - ct[0].dl_s);
if (dummy > 1e-6) if (dummy > 1e-6)