mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-16 16:44:49 +01:00
need to check result. changed SurfComp.h SurfaceComp.h changed SurfComp.cxx SurfaceComp.cxx changed SurfCharge.h SurfaceCharge.h changed SurfCharge.cxx SurfaceCharge.cxx Added Dictionary.cxx and Dictionary.h git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@894 1feff8c3-07ed-0310-ac33-dd36852eb9cd
63 lines
1.7 KiB
C++
63 lines
1.7 KiB
C++
#if !defined(SSASSEMBLAGESS_H_INCLUDED)
|
|
#define SSASSEMBLAGESS_H_INCLUDED
|
|
|
|
#include "NameDouble.h"
|
|
#define EXTERNAL extern
|
|
#include "global.h"
|
|
#include <cassert> // assert
|
|
#include <map> // std::map
|
|
#include <string> // std::string
|
|
#include <list> // std::list
|
|
#include <vector> // std::vector
|
|
|
|
#include "char_star.h"
|
|
|
|
class cxxSSassemblageSS
|
|
{
|
|
|
|
public:
|
|
cxxSSassemblageSS();
|
|
cxxSSassemblageSS(struct s_s *);
|
|
~cxxSSassemblageSS();
|
|
|
|
enum SS_PARAMETER_TYPE {
|
|
SS_PARM_NONE = -1,
|
|
SS_PARM_A0_A1 = 0,
|
|
SS_PARM_GAMMAS = 1,
|
|
SS_PARM_DIST_COEF = 2,
|
|
SS_PARM_MISCIBILITY = 3,
|
|
SS_PARM_SPINODAL = 4,
|
|
SS_PARM_CRITICAL = 5,
|
|
SS_PARM_ALYOTROPIC = 6,
|
|
SS_PARM_DIM_GUGG = 7,
|
|
SS_PARM_WALDBAUM = 8,
|
|
SS_PARM_MARGULES = 9
|
|
};
|
|
|
|
static struct s_s *cxxSSassemblageSS2s_s(std::list<cxxSSassemblageSS>& el);
|
|
|
|
void dump_xml(std::ostream& os, unsigned int indent = 0)const;
|
|
|
|
void dump_raw(std::ostream& s_oss, unsigned int indent)const;
|
|
|
|
void read_raw(CParser& parser);
|
|
|
|
#ifdef USE_MPI
|
|
void mpi_pack(std::vector<int>& ints, std::vector<double>& doubles);
|
|
void mpi_unpack(int *ints, int *ii, double *doubles, int *dd);
|
|
#endif
|
|
|
|
protected:
|
|
char *name;
|
|
cxxNameDouble comps;
|
|
double a0, a1;
|
|
double ag0, ag1;
|
|
bool miscibility;
|
|
double xb1, xb2;
|
|
|
|
public:
|
|
|
|
};
|
|
|
|
#endif // !defined(SSASSEMBLAGESS_H_INCLUDED)
|