mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-16 16:44:49 +01:00
fix: Add missing "H" and "O" primaries
This commit is contained in:
parent
eb03f3ef81
commit
d00975a33e
@ -6,8 +6,6 @@
|
||||
|
||||
void PhreeqcEngine::init_wrappers(const POETInitCell &cell) {
|
||||
|
||||
// TODO: Implement the rest of the wrappers. Currently supported: EXCHANGE
|
||||
|
||||
// Solutions
|
||||
this->solutionWrapperPtr =
|
||||
std::make_unique<SolutionWrapper>(this->Get_solution(1), cell.solutions);
|
||||
|
||||
@ -63,6 +63,10 @@ void PhreeqcInit::dump_reactant_names(
|
||||
auto *surface = this->Get_surface(cell_number);
|
||||
|
||||
if (this->surface_primaries.empty()) {
|
||||
// this is fixed! Always add H and O
|
||||
this->surface_primaries.insert("H");
|
||||
this->surface_primaries.insert("O");
|
||||
|
||||
for (std::size_t i = 3; i < union_sol_names.size(); i++) {
|
||||
const auto master_primary = this->PhreeqcPtr->master_bsearch_primary(
|
||||
union_sol_names[i].c_str());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user