mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-15 16:18:22 +01:00
git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/trunk@4339 1feff8c3-07ed-0310-ac33-dd36852eb9cd
23 lines
341 B
C++
23 lines
341 B
C++
#include <iostream>
|
|
#include <IPhreeqc.hpp>
|
|
|
|
int
|
|
main(int argc, const char* argv[])
|
|
{
|
|
IPhreeqc iphreeqc;
|
|
|
|
if (iphreeqc.LoadDatabase("phreeqc.dat") != 0)
|
|
{
|
|
std::cout << iphreeqc.GetErrorString();
|
|
return 1;
|
|
}
|
|
|
|
if (iphreeqc.RunFile("ex1") != 0)
|
|
{
|
|
std::cout << iphreeqc.GetErrorString();
|
|
return 2;
|
|
}
|
|
|
|
return 0;
|
|
}
|