mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-15 16:18:22 +01:00
Squashed 'phreeqcpp/' changes from c369020..b948e30
b948e30 Exception caught in PhreeqcI. Null pointer for bad definition in SURFACE_MASTER_SPECIES. Test case surf_error added, which catches the error, but run exits. git-subtree-dir: phreeqcpp git-subtree-split: b948e30d1ef801f52c99736b58e79dcff5537e23
This commit is contained in:
parent
80bf22d292
commit
3c8e294fd3
9
tidy.cpp
9
tidy.cpp
@ -2312,6 +2312,15 @@ tidy_species(void)
|
||||
}
|
||||
/* store sequence number in master structure */
|
||||
master[i]->number = i;
|
||||
if (master[i]->s == NULL)
|
||||
{
|
||||
input_error++;
|
||||
error_string = sformatf(
|
||||
"Species pointer is null for, %s. Check your _MASTER_ and _SPECIES definitions.",
|
||||
master[i]->elt->name);
|
||||
error_msg(error_string, STOP);
|
||||
}
|
||||
|
||||
if (strcmp(master[i]->elt->name, "Alkalinity") != 0)
|
||||
{
|
||||
if (master[i]->primary == TRUE)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user