Changeset 2042 for branches/newmole/source/mole_reactions.cpp
- Timestamp:
- 05/11/08 12:53:42 (8 months ago)
- Files:
-
- 1 modified
-
branches/newmole/source/mole_reactions.cpp (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/newmole/source/mole_reactions.cpp
r2027 r2042 450 450 { 451 451 struct mole_reaction_s *rate; 452 structmolecule *sp;452 molecule *sp; 453 453 ratefunc func; 454 454 mole_reaction_i p; … … 558 558 required (look for references to "reactants[0]" for examples) */ 559 559 qsort((void *)rate->reactants,(size_t)rate->nreactants, 560 sizeof( structmolecule *),mole_cmp);560 sizeof(molecule *),mole_cmp); 561 561 qsort((void *)rate->products,(size_t)rate->nproducts, 562 sizeof( structmolecule *),mole_cmp);562 sizeof(molecule *),mole_cmp); 563 563 564 564 ASSERT(lgReactBalance(rate)); /* Verify rate conserves particles and charge */ … … 1683 1683 class formula_species { 1684 1684 public: 1685 structmolecule *reactants[MAXREACTANTS], *products[MAXPRODUCTS];1685 molecule *reactants[MAXREACTANTS], *products[MAXPRODUCTS]; 1686 1686 }; 1687 1687 … … 1767 1767 } 1768 1768 } 1769 qsort((void *)r->l.reactants,(size_t)i,sizeof( structmolecule *),1769 qsort((void *)r->l.reactants,(size_t)i,sizeof(molecule *), 1770 1770 mole_cmp); 1771 1771 … … 1787 1787 } 1788 1788 } 1789 qsort((void *)r->l.products,(size_t)i,sizeof( structmolecule *),1789 qsort((void *)r->l.products,(size_t)i,sizeof(molecule *), 1790 1790 mole_cmp); 1791 1791 … … 2933 2933 double ratev, ratevi; 2934 2934 struct mole_reaction_s *rate; 2935 structmolecule *sp;2935 molecule *sp; 2936 2936 2937 2937 DEBUG_ENTRY("mole_sink_rate()"); … … 2990 2990 double ratev, ratevi; 2991 2991 struct mole_reaction_s *rate; 2992 structmolecule *sp, *ph;2992 molecule *sp, *ph; 2993 2993 2994 2994 DEBUG_ENTRY("mole_dissoc_rate()"); … … 3044 3044 double ratev, ratevi; 3045 3045 struct mole_reaction_s *rate; 3046 structmolecule *sp;3046 molecule *sp; 3047 3047 3048 3048 DEBUG_ENTRY("mole_source_rate()"); … … 3140 3140 double ratevi; 3141 3141 struct mole_reaction_s *rate; 3142 structmolecule *sp;3142 molecule *sp; 3143 3143 3144 3144 DEBUG_ENTRY("mole_punch()");
