mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-16 00:28:23 +01:00
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:
commit
e70be6388f
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
*
|
*
|
||||||
|
|||||||
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
@ -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) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user