WIP: fix solution heterogeneity

This commit is contained in:
Max Lübke 2024-10-16 14:50:52 +02:00
parent ee940d20e4
commit c046e907b4
3 changed files with 1432 additions and 1628 deletions

View File

@ -194,7 +194,7 @@ void PhreeqcEngine::Impl::get_essential_values(std::span<double> &data) {
void PhreeqcEngine::Impl::set_essential_values(const std::span<double> &data) {
this->solutionWrapperPtr->set(data);
this->PhreeqcPtr->initial_solutions_poet(1);
// this->PhreeqcPtr->initial_solutions_poet(1);
std::size_t offset = this->solutionWrapperPtr->size();

View File

@ -22,7 +22,7 @@ void SolutionWrapper::get(std::span<LDBLE> &data) const {
data[i++] = 0.0;
continue;
}
data[i++] = it->second;
data[i++] = it->second > 1e-25 ? it->second : 0.;
}
}

File diff suppressed because it is too large Load Diff