Merge commit '79c28e50c1ac44195f0aafc8279f601f1f40c836'

This commit is contained in:
Scott R Charlton 2019-05-06 15:44:30 -06:00
commit 7989602798

View File

@ -1435,7 +1435,17 @@ tidy_inverse(void)
inverse[i].elts[j].master->in = TRUE;
}
s_eminus->primary->in = TRUE; /* Include electrons */
master_alk_ptr->in = TRUE; /* Include alkalinity */
if (master_alk_ptr)
{
master_alk_ptr->in = TRUE; /* Include alkalinity */
}
else
{
input_error++;
error_string = sformatf(
"Alkalinity must be defined in SOLUTION_MASTER_SPECIES to be able to use INVERSE_MODELING.");
error_msg(error_string, CONTINUE);
}
/*
* Unmark primary and mark secondary master species for redox elements
*/