mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-16 08:38:23 +01:00
21 lines
448 B
C++
21 lines
448 B
C++
#include <IPhreeqc.hpp>
|
|
#include <iostream>
|
|
|
|
int main (void)
|
|
{
|
|
IPhreeqc iphreeqc;
|
|
if (iphreeqc.LoadDatabase("phreeqc.dat") != 0)
|
|
{
|
|
std::cout << iphreeqc.GetErrorString();
|
|
return EXIT_FAILURE;
|
|
}
|
|
iphreeqc.SetOutputFileOn(true);
|
|
iphreeqc.SetOutputFileName("ex2.out");
|
|
if (iphreeqc.RunFile("ex2") != 0)
|
|
{
|
|
std::cout << iphreeqc.GetErrorString();
|
|
return EXIT_FAILURE;
|
|
}
|
|
return 0;
|
|
}
|