Show
Ignore:
Timestamp:
05/13/08 17:01:00 (8 months ago)
Author:
rjrw
Message:

Move further towards Householder projection method for of conservation
constraints

Some other tidyings (move from explicit pointers to multi_arr)

Files:
1 modified

Legend:

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

    r2042 r2055  
    2929/*=================================================================*/ 
    3030 
    31 void mole_eval_balance(long int num_total, double *b, double **c) 
     31void mole_eval_balance(long int num_total, double *b, bool lgJac, multi_arr<double,2> &c) 
    3232{ 
    3333        long int i, j, nelem, ion, ion2; 
     
    4444        { 
    4545                mole.zone[i].src = mole.zone[i].snk = 0.; 
    46                 if (c) 
     46                if (lgJac) 
    4747                        for( j=0; j < num_total; j++ ) 
    4848                        { 
     
    129129                } 
    130130                 
    131                 if (c) 
     131                if (lgJac) 
    132132                { 
    133133                        for(j=0;j<rate->nreactants;j++) 
     
    149149        } 
    150150#if !defined(NDEBUG) 
    151         if (c) 
     151        if (lgJac) 
    152152        { 
    153153                for (i=0;i<mole.num_calc;i++)  
     
    206206                        fprintf(stdout,"]\n"); 
    207207                } 
    208                 if (c) 
     208                if (lgJac) 
    209209                        fprintf(stdout,"Diag %g err %g rat %g\n",c[debug_species->index][debug_species->index], 
    210210                                                        b[debug_species->index],b[debug_species->index]/SDIV(-c[debug_species->index][debug_species->index]));