Show
Ignore:
Timestamp:
05/06/08 14:47:46 (8 months ago)
Author:
rjrw
Message:

Add optional diagnostics for rate and chemical balance controlling
species update.

Remove logically dead code.

Files:
1 modified

Legend:

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

    r1846 r2027  
    18931893{ 
    18941894        struct mole_reaction_s *rate; 
     1895        enum { DEBUG_MOLE = false }; 
    18951896 
    18961897        DEBUG_ENTRY("mole_update_rks()"); 
     
    19061907        { 
    19071908                rate = p->second; 
     1909                realnum oldrk = rate->rk; 
    19081910                ASSERT(rate->fun != NULL); 
    19091911                rate->rk = rate->a*rate->fun(rate); 
     1912                if (DEBUG_MOLE) 
     1913                { 
     1914                        if (fabs(rate->rk-oldrk) > 0.1*rate->rk) 
     1915                                fprintf(ioQQQ,"%s: %15.8g => %15.8g\n", 
     1916                                                                rate->label,oldrk,rate->rk); 
     1917                } 
    19101918        }        
    19111919}