mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-15 16:18:22 +01:00
Compare commits
3 Commits
6b0bc8aaff
...
29fbbc657b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
29fbbc657b | ||
|
|
e1ee3f801a | ||
|
|
f3444ab2fa |
@ -15,6 +15,11 @@ PhreeqcSelectedOutputParser::PhreeqcSelectedOutputParser(
|
||||
|
||||
if (this->_m_has_selected_output) {
|
||||
parseHeader();
|
||||
if (this->_m_headings.size() != this->getValues(1).size()) {
|
||||
throw std::runtime_error(
|
||||
"Number of headings does not match number of values in selected "
|
||||
"output.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -132,7 +137,7 @@ PhreeqcSelectedOutputParser::getValues(std::uint32_t cell_id) const {
|
||||
if (!this->hasSelectedOutput()) {
|
||||
return {}; // No selected output defined
|
||||
}
|
||||
// this->_m_pqc_instance->SetCurrentSelectedOutputUserNumber(cell_id);
|
||||
this->_m_pqc_instance->SetCurrentSelectedOutputUserNumber(cell_id);
|
||||
|
||||
const std::string selected_output_string =
|
||||
_m_pqc_instance->GetSelectedOutputString();
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
// Time-stamp: "Last modified 2025-07-28 20:14:08 delucia"
|
||||
// Time-stamp: "Last modified 2025-08-01 10:54:30 delucia"
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
#include <linux/limits.h>
|
||||
@ -96,6 +96,10 @@ int main(int argc, char *argv[]) {
|
||||
auto outonly = pqc_mat1.getMatrixOutOnly();
|
||||
std::cout << ":: pqc_mat1.getMatrixOutOnly(): \n";
|
||||
std::cout << outonly << "\n\n";
|
||||
|
||||
auto selout = pqc_mat1.getSelectedOutputNames();
|
||||
std::cout << ":: pqc_mat1.getSelectedOutputNames(): \n";
|
||||
std::cout << selout << "\n\n";
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user