mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-16 00:28:23 +01:00
WIP: fix solution heterogeneity
This commit is contained in:
parent
ee940d20e4
commit
c046e907b4
@ -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();
|
||||
|
||||
|
||||
@ -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
Loading…
x
Reference in New Issue
Block a user