Show
Ignore:
Timestamp:
12/18/07 02:38:17 (11 months ago)
Author:
rjrw
Message:

Previous fix for

limit_supra

breaks

grains_lte, h2_cr_grains, h2_solomon, h2_t2000, h2_t500, helike_n,
pdr_leiden_hack_v3

-- back out the fix for the moment, will try something else...

Files:
1 modified

Legend:

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

    r1690 r1693  
    2929/*=================================================================*/ 
    3030 
     31#define FABSSWITCH(a) (a) 
    3132 
    3233void mole_eval_balance(long int num_total, double *b, double **c) 
     
    9091                                if(i!=j) 
    9192                                { 
    92                                         rate_deriv[i] *= fabs(rate->reactants[j]->hevmol); 
    93                                 } 
    94                         } 
    95                 } 
    96                  
    97                 rate_tot = rate_deriv[0]*fabs(rate->reactants[0]->hevmol); 
     93                                        rate_deriv[i] *= FABSSWITCH(rate->reactants[j]->hevmol); 
     94                                } 
     95                        } 
     96                } 
     97                 
     98                rate_tot = rate_deriv[0]*FABSSWITCH(rate->reactants[0]->hevmol); 
    9899                 
    99100                for(i=0;i<rate->nreactants;i++)