mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-16 08:38:23 +01:00
cleaned up to eliminate some prints
This commit is contained in:
parent
07a864d1a6
commit
2a9464430b
@ -201,7 +201,9 @@ void Phreeqc::
|
||||
screen_msg(const char *err_str)
|
||||
/* ---------------------------------------------------------------------- */
|
||||
{
|
||||
#ifndef TESTING
|
||||
if (phrq_io) phrq_io->screen_msg(err_str);
|
||||
#endif
|
||||
}
|
||||
// ---------------------------------------------------------------------- */
|
||||
// dump file methods
|
||||
|
||||
@ -283,6 +283,9 @@ int Phreeqc::
|
||||
write_banner(void)
|
||||
/* ---------------------------------------------------------------------- */
|
||||
{
|
||||
#ifdef TESTING
|
||||
return OK;
|
||||
#endif
|
||||
char buffer[80];
|
||||
int len, indent;
|
||||
screen_msg(
|
||||
|
||||
@ -501,7 +501,7 @@ transport(void)
|
||||
else
|
||||
sprintf(token, "\nCalculating transport: %d (mobile) cells, %d shifts, %d mixruns...\n\n",
|
||||
count_cells, count_shifts - transport_start + 1, nmix);
|
||||
screen_msg(token);
|
||||
warning_msg(token);
|
||||
max_iter = 0;
|
||||
for (transport_step = transport_start; transport_step <= count_shifts;
|
||||
transport_step++)
|
||||
@ -960,8 +960,7 @@ transport(void)
|
||||
{
|
||||
sprintf(token,
|
||||
"\nFor balancing negative concentrations in MCD, added in total to the system:");
|
||||
if (phrq_io)
|
||||
phrq_io->warning_msg(token);
|
||||
warning_msg(token);
|
||||
for (i = 0; i < count_moles_added; i++)
|
||||
{
|
||||
if (!moles_added[i].moles)
|
||||
@ -969,8 +968,7 @@ transport(void)
|
||||
sprintf(token,
|
||||
"\t %.4e moles %s.",
|
||||
(double)moles_added[i].moles, moles_added[i].name);
|
||||
if (phrq_io)
|
||||
phrq_io->warning_msg(token);
|
||||
warning_msg(token);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user