Changeset 2077
- Timestamp:
- 05/16/08 16:34:31 (2 months ago)
- Files:
-
- branches/newmole/source/mole_priv.h (modified) (3 diffs)
- branches/newmole/source/mole_species.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/newmole/source/mole_priv.h
r2076 r2077 8 8 9 9 extern struct mole_priv_s { 10 map <string, structmolecule *> spectab;10 map <string,molecule *> spectab; 11 11 map <string,struct mole_reaction_s *> reactab; 12 12 map <string,struct chem_element_s *> elemtab; … … 24 24 25 25 typedef map<string,struct mole_reaction_s *>::iterator mole_reaction_i; 26 typedef map<string, structmolecule *>::iterator molecule_i;26 typedef map<string,molecule *>::iterator molecule_i; 27 27 typedef map<string,struct chem_element_s *>::iterator chem_element_i; 28 28 29 extern structmolecule **groupspecies;29 extern molecule **groupspecies; 30 30 31 extern structmolecule *null_mole;31 extern molecule *null_mole; 32 32 33 33 #define MAXREACTANTS 3 … … 38 38 char *label; 39 39 int nreactants, nproducts, photon; 40 structmolecule *reactants[MAXREACTANTS];41 structmolecule *rvector[MAXREACTANTS];42 structmolecule *products[MAXPRODUCTS];43 structmolecule *pvector[MAXPRODUCTS];40 molecule *reactants[MAXREACTANTS]; 41 molecule *rvector[MAXREACTANTS]; 42 molecule *products[MAXPRODUCTS]; 43 molecule *pvector[MAXPRODUCTS]; 44 44 double rk, reduced_mass, a, b, c; 45 45 double (*fun)(struct mole_reaction_s *rate); branches/newmole/source/mole_species.cpp
r2043 r2077 35 35 36 36 STATIC void newelement(const char label[], int ipion); 37 STATIC structmolecule *newspecies(const char label[7], enum spectype type,37 STATIC molecule *newspecies(const char label[7], enum spectype type, 38 38 enum mole_state state, realnum *location, 39 39 realnum form_enthalpy); 40 40 STATIC struct chem_element_s *findelement(const char buf[]); 41 STATIC bool isactive( structmolecule *p);42 STATIC bool ispassive( structmolecule *p);41 STATIC bool isactive(molecule *p); 42 STATIC bool ispassive(molecule *p); 43 43 STATIC void make_groups(void); 44 44 45 45 struct mole_priv_s mole_priv; 46 structmolecule *null_mole;46 molecule *null_mole; 47 47 struct chem_element_s *element_list[LIMELM]; 48 structmolecule **groupspecies;48 molecule **groupspecies; 49 49 50 50 #include <functional>
