mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-16 16:44:49 +01:00
Gentisic problem. H2O was defined as a SURFACE_SPECIES.
git-svn-id: svn://136.177.114.72/svn_GW/phreeqc3/trunk@8700 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
parent
cfa58371fe
commit
504bcf6dd0
39
prep.cpp
39
prep.cpp
@ -2821,6 +2821,15 @@ add_potential_factor(void)
|
||||
struct master *master_ptr;
|
||||
struct unknown *unknown_ptr;
|
||||
|
||||
if (use.Get_surface_ptr() == NULL)
|
||||
{
|
||||
input_error++;
|
||||
error_string = sformatf(
|
||||
"SURFACE not defined for surface species %s",
|
||||
trxn.token[0].name);
|
||||
error_msg(error_string, CONTINUE);
|
||||
return(OK);
|
||||
}
|
||||
if (use.Get_surface_ptr()->Get_type() != cxxSurface::DDL)
|
||||
return (OK);
|
||||
sum_z = 0.0;
|
||||
@ -2911,7 +2920,15 @@ add_cd_music_factors(int n)
|
||||
std::string token;
|
||||
struct master *master_ptr;
|
||||
struct unknown *unknown_ptr;
|
||||
|
||||
if (use.Get_surface_ptr() == NULL)
|
||||
{
|
||||
input_error++;
|
||||
error_string = sformatf(
|
||||
"SURFACE not defined for surface species %s",
|
||||
trxn.token[0].name);
|
||||
error_msg(error_string, CONTINUE);
|
||||
return(OK);
|
||||
}
|
||||
if (use.Get_surface_ptr()->Get_type() != cxxSurface::CD_MUSIC)
|
||||
return (OK);
|
||||
master_ptr = NULL;
|
||||
@ -3031,7 +3048,15 @@ add_surface_charge_balance(void)
|
||||
|
||||
struct master *master_ptr;
|
||||
struct unknown *unknown_ptr;
|
||||
|
||||
if (use.Get_surface_ptr() == NULL)
|
||||
{
|
||||
input_error++;
|
||||
error_string = sformatf(
|
||||
"SURFACE not defined for surface species %s",
|
||||
trxn.token[0].name);
|
||||
error_msg(error_string, CONTINUE);
|
||||
return(OK);
|
||||
}
|
||||
if (use.Get_surface_ptr()->Get_type() != cxxSurface::DDL)
|
||||
return (OK);
|
||||
master_ptr = NULL;
|
||||
@ -3090,7 +3115,15 @@ add_cd_music_charge_balances(int n)
|
||||
|
||||
struct master *master_ptr;
|
||||
struct unknown *unknown_ptr;
|
||||
|
||||
if (use.Get_surface_ptr() == NULL)
|
||||
{
|
||||
input_error++;
|
||||
error_string = sformatf(
|
||||
"SURFACE not defined for surface species %s",
|
||||
trxn.token[0].name);
|
||||
error_msg(error_string, CONTINUE);
|
||||
return(OK);
|
||||
}
|
||||
if (use.Get_surface_ptr()->Get_type() != cxxSurface::CD_MUSIC)
|
||||
return (OK);
|
||||
master_ptr = NULL;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user