Merge branch 'ml/standalone-header' into 'poet'

refactor: reorganize includes and forward declarations in PhreeqcKnobs and PhreeqcMatrix

See merge request naaice/iphreeqc!25
This commit is contained in:
Max Lübke 2024-12-05 19:13:45 +01:00
commit e70be6388f
5 changed files with 9 additions and 2 deletions

View File

@ -1,6 +1,5 @@
#pragma once #pragma once
#include "Phreeqc.h"
#include <cstdint> #include <cstdint>
/** /**
* @brief A struct to hold the parameters for PhreeqcKnobs. * @brief A struct to hold the parameters for PhreeqcKnobs.
@ -18,6 +17,8 @@ struct PhreeqcKnobsParams {
bool diagonal_scale; bool diagonal_scale;
}; };
class Phreeqc;
/** /**
* @class PhreeqcKnobs * @class PhreeqcKnobs
* @brief A class to manage and manipulate knobs (parameters) for a Phreeqc * @brief A class to manage and manipulate knobs (parameters) for a Phreeqc

View File

@ -6,9 +6,10 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include "IPhreeqc.hpp"
#include "PhreeqcKnobs.hpp" #include "PhreeqcKnobs.hpp"
class IPhreeqc;
/** /**
* @brief Class for storing information from Phreeqc * @brief Class for storing information from Phreeqc
* *

View File

@ -1,5 +1,7 @@
#include "PhreeqcKnobs.hpp" #include "PhreeqcKnobs.hpp"
#include <Phreeqc.h>
PhreeqcKnobs::PhreeqcKnobs(Phreeqc *pqc_instance) { PhreeqcKnobs::PhreeqcKnobs(Phreeqc *pqc_instance) {
this->readKnobs(pqc_instance); this->readKnobs(pqc_instance);
} }

View File

@ -6,6 +6,7 @@
#include "../Wrapper/SolutionWrapper.hpp" #include "../Wrapper/SolutionWrapper.hpp"
#include "../Wrapper/SurfaceWrapper.hpp" #include "../Wrapper/SurfaceWrapper.hpp"
#include <IPhreeqc.hpp>
#include <Phreeqc.h> #include <Phreeqc.h>
#include <Solution.h> #include <Solution.h>
#include <cmath> #include <cmath>

View File

@ -1,5 +1,7 @@
#include "PhreeqcMatrix.hpp" #include "PhreeqcMatrix.hpp"
#include <IPhreeqc.hpp>
std::vector<int> PhreeqcMatrix::getIds() const { std::vector<int> PhreeqcMatrix::getIds() const {
std::vector<int> ids; std::vector<int> ids;
for (const auto &[id, _] : _m_map) { for (const auto &[id, _] : _m_map) {