mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-16 08:38:23 +01:00
Add raw_dumps() function to IPhreeqcPOET.hpp
This commit is contained in:
parent
9cb2aba57a
commit
f3f86bb4ac
@ -10,6 +10,7 @@
|
|||||||
#include <array>
|
#include <array>
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <cxxKinetics.h>
|
#include <cxxKinetics.h>
|
||||||
|
#include <map>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
@ -47,6 +48,20 @@ public:
|
|||||||
|
|
||||||
std::vector<int> getSolutionIds() const { return this->solution_ids; }
|
std::vector<int> getSolutionIds() const { return this->solution_ids; }
|
||||||
|
|
||||||
|
std::map<int, std::string> raw_dumps() {
|
||||||
|
std::map<int, std::string> dumps;
|
||||||
|
|
||||||
|
this->SetDumpStringOn(true);
|
||||||
|
|
||||||
|
for (const auto &sol_id : this->solution_ids) {
|
||||||
|
std::string call_string = "DUMP\n -cells " + std::to_string(sol_id);
|
||||||
|
this->RunString(call_string.c_str());
|
||||||
|
dumps[sol_id] = this->GetDumpString();
|
||||||
|
}
|
||||||
|
|
||||||
|
return dumps;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
using essential_names = std::array<std::vector<std::string>, 5>;
|
using essential_names = std::array<std::vector<std::string>, 5>;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user