Show
Ignore:
Timestamp:
03/09/08 16:59:05 (10 months ago)
Author:
rjrw
Message:

Minor changes to resulting from trying to chase down differences on
pdf_leiden_f1 --

ion_solver: allow molecule effects in first iteration,
iso_level: defensive programming for z[][]
mole_eval_balance: move some definitions for sp
mole_co_atom: add SDIV (aka fixit...) to prevent FPE in some circumstances

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/newmole/source/mole_eval_balance.cpp

    r1836 r1838  
    9494                 
    9595                for(i=0;i<rate->nreactants;i++) 
    96                 { 
     96                {        
     97                        sp = rate->reactants[i]; 
    9798                        if (rate->rvector[i] == NULL) 
    9899                        { 
    99                                 sp = rate->reactants[i]; 
    100100                                mole.zone[sp->index].snk += rate_deriv[i]; 
    101101                                if (sp == debug_species)  
     
    112112                                for( nelem=0; nelem< LIMELM; ++nelem ) 
    113113                                { 
    114                                         if (rate->reactants[i]->nElem[nelem] != 0) 
     114                                        if (sp->nElem[nelem] != 0) 
    115115                                        { 
    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]; 
    117117                                                break; 
    118118                                        } 
     
    123123                for(i=0;i<rate->nproducts;i++) 
    124124                { 
     125                        sp = rate->products[i]; 
    125126                        if (rate->pvector[i] == NULL) 
    126127                        { 
    127                                 sp = rate->products[i]; 
    128128                                mole.zone[sp->index].src += rate_tot; 
    129129                                if (sp == debug_species)