mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-16 16:44:49 +01:00
git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/branches/ErrorHandling@5992 1feff8c3-07ed-0310-ac33-dd36852eb9cd
49 lines
1.3 KiB
C++
49 lines
1.3 KiB
C++
#if !defined(GASCOMP_H_INCLUDED)
|
|
#define GASCOMP_H_INCLUDED
|
|
|
|
#include <cassert> // assert
|
|
#include <map> // std::map
|
|
#include <string> // std::string
|
|
#include <list> // std::list
|
|
#include <vector> // std::vector
|
|
|
|
#include "NameDouble.h"
|
|
|
|
class cxxGasComp: public PHRQ_base
|
|
{
|
|
|
|
public:
|
|
cxxGasComp(PHRQ_io *io=NULL);
|
|
|
|
~cxxGasComp();
|
|
|
|
|
|
void dump_raw(std::ostream & s_oss, unsigned int indent) const;
|
|
|
|
bool read_raw(CParser & parser, bool check=true);
|
|
|
|
std::string Get_phase_name(void) const {return this->phase_name;}
|
|
void Set_phase_name(std::string s) {this->phase_name = s;}
|
|
LDBLE Get_p_read() const {return this->p_read;}
|
|
void Set_p_read(LDBLE t) {this->p_read = t;}
|
|
LDBLE Get_moles() const {return this->moles;}
|
|
void Set_moles(LDBLE t) {this->moles = t;}
|
|
LDBLE Get_initial_moles() const {return this->initial_moles;}
|
|
void Set_initial_moles(LDBLE t) {this->initial_moles = t;}
|
|
|
|
void add(const cxxGasComp & addee, LDBLE extensive);
|
|
void cxxGasComp::multiply(LDBLE extensive);
|
|
|
|
#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:
|
|
std::string phase_name;
|
|
LDBLE p_read;
|
|
LDBLE moles;
|
|
LDBLE initial_moles;
|
|
};
|
|
|
|
#endif // !defined(GASCOMP_H_INCLUDED)
|