mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-16 16:44:49 +01:00
All reactant structs have been removed. Tony's pressure uses mu in pressure term of log_k. Test cases run, discriminant check at 1e-8. Still want to optimize out some k_temp calls and checks for same T, P, mu. git-svn-id: svn://136.177.114.72/svn_GW/phreeqc3/trunk@6269 1feff8c3-07ed-0310-ac33-dd36852eb9cd
61 lines
1.6 KiB
C++
61 lines
1.6 KiB
C++
#if !defined(SSASSEMBLAGE_H_INCLUDED)
|
|
#define SSASSEMBLAGE_H_INCLUDED
|
|
|
|
|
|
#include <cassert> // assert
|
|
#include <map> // std::map
|
|
#include <string> // std::string
|
|
#include <list> // std::list
|
|
#include <vector> // std::vector
|
|
|
|
#include "NumKeyword.h"
|
|
#include "NameDouble.h"
|
|
#include "Phreeqc_class.h"
|
|
#include "SS.h"
|
|
|
|
class cxxSS;
|
|
|
|
//#include "cxxMix.h"
|
|
class cxxMix;
|
|
|
|
class cxxSSassemblage:public cxxNumKeyword
|
|
{
|
|
|
|
public:
|
|
cxxSSassemblage(PHRQ_io * io = NULL);
|
|
cxxSSassemblage(const std::map < int, cxxSSassemblage > &entity_map,
|
|
cxxMix & mx, int n_user, PHRQ_io * io = NULL);
|
|
~cxxSSassemblage();
|
|
|
|
//void dump_xml(std::ostream& os, unsigned int indent = 0)const;
|
|
|
|
void dump_raw(std::ostream & s_oss, unsigned int indent, int *n_out=NULL) const;
|
|
|
|
void read_raw(CParser & parser, bool check = true);
|
|
|
|
#ifdef USE_MPI
|
|
void mpi_pack(std::vector < int >&ints, std::vector < LDBLE >&doubles);
|
|
void mpi_unpack(int *ints, int *ii, LDBLE *doubles, int *dd);
|
|
#endif
|
|
void totalize(PHREEQC_PTR_ARG);
|
|
|
|
const cxxNameDouble & Get_totals() const {return this->totals;}
|
|
std::map < std::string, cxxSS > & Get_SSs(void) {return SSs;}
|
|
void Set_SSs(std::map < std::string, cxxSS > & ss) {SSs = ss;}
|
|
bool Get_new_def(void) const {return new_def;}
|
|
void Set_new_def(bool tf) {new_def = tf;}
|
|
std::vector<cxxSS *> Vectorize(void);
|
|
void add(const cxxSSassemblage & addee, LDBLE extensive);
|
|
cxxSS *Find(const std::string &s);
|
|
|
|
protected:
|
|
// SOLID_SOLUTION_MODIFY candidate
|
|
std::map < std::string, cxxSS > SSs;
|
|
// SOLID_SOLUTION keyword data
|
|
bool new_def;
|
|
// internal variables
|
|
cxxNameDouble totals;
|
|
};
|
|
|
|
#endif // !defined(SSASSEMBLAGE_H_INCLUDED)
|