mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-15 16:18:22 +01:00
18 lines
368 B
C++
18 lines
368 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;
|
|
}
|
|
if (iphreeqc.RunFile("ex2") != 0)
|
|
{
|
|
std::cout << iphreeqc.GetErrorString();
|
|
return EXIT_FAILURE;
|
|
}
|
|
return 0;
|
|
} |