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/iso_level.cpp

    r1834 r1838  
    7171        /* now do the 2D array */ 
    7272        z.alloc(numlevels_local,numlevels_local); 
     73        z.zero(); 
    7374 
    7475        /* >>chng 03 may 01, move defn of these two up here, before entering matrix */ 
     
    235236                        /* all process depopulating level and placing into the continuum 
    236237                         * this does NOT include grain charge transfer ionization, added below */ 
    237                         z[level][level] = iso.RateLevel2Cont[ipISO][nelem][level]; 
     238                        z[level][level] += iso.RateLevel2Cont[ipISO][nelem][level]; 
    238239                         
    239240                        if( ipISO == ipHE_LIKE && level == ipHe2s3S ) 
     
    271272 
    272273                                z[ipLo][ipLo] += coll_up + pump ; 
    273                                 z[ipLo][level] = - ( coll_up + pump ); 
     274                                z[ipLo][level] -= coll_up + pump ; 
    274275 
    275276                                double pump_down = pump * 
     
    278279 
    279280                                z[level][level] += RadDecay + pump_down + coll_down; 
    280                                 z[level][ipLo] = - (RadDecay + pump_down + coll_down); 
     281                                z[level][ipLo] -= RadDecay + pump_down + coll_down; 
    281282 
    282283                                if( ipISO == ipHE_LIKE )