Changeset 1838 for branches/newmole/source/mole_eval_balance.cpp
- Timestamp:
- 03/09/08 16:59:05 (10 months ago)
- Files:
-
- 1 modified
-
branches/newmole/source/mole_eval_balance.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/newmole/source/mole_eval_balance.cpp
r1836 r1838 94 94 95 95 for(i=0;i<rate->nreactants;i++) 96 { 96 { 97 sp = rate->reactants[i]; 97 98 if (rate->rvector[i] == NULL) 98 99 { 99 sp = rate->reactants[i];100 100 mole.zone[sp->index].snk += rate_deriv[i]; 101 101 if (sp == debug_species) … … 112 112 for( nelem=0; nelem< LIMELM; ++nelem ) 113 113 { 114 if ( rate->reactants[i]->nElem[nelem] != 0)114 if (sp->nElem[nelem] != 0) 115 115 { 116 mole.xMoleChTrRate[nelem][ rate->reactants[i]->charge][rate->rvector[i]->charge] += rate_deriv[i];116 mole.xMoleChTrRate[nelem][sp->charge][rate->rvector[i]->charge] += rate_deriv[i]; 117 117 break; 118 118 } … … 123 123 for(i=0;i<rate->nproducts;i++) 124 124 { 125 sp = rate->products[i]; 125 126 if (rate->pvector[i] == NULL) 126 127 { 127 sp = rate->products[i];128 128 mole.zone[sp->index].src += rate_tot; 129 129 if (sp == debug_species)
