Changeset 2085 for trunk/source/iso_level.cpp
- Timestamp:
- 05/19/08 12:30:10 (8 months ago)
- Files:
-
- 1 modified
-
trunk/source/iso_level.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/iso_level.cpp
r2084 r2085 333 333 } 334 334 335 #if 0 335 for( long ion=0; ion<=nelem+1; ++ion ) 336 { 337 if( ion!=nelem-ipISO ) 338 { 339 /* recombination must be multiplied by a ratio of densities to get proper rate. */ 340 source += mole.xMoleChTrRate[nelem][ion][nelem-ipISO] * 341 dense.xIonDense[nelem][ion] ; 342 /* take ionization out of every level. */ 343 sink += mole.xMoleChTrRate[nelem][nelem-ipISO][ion]; 344 } 345 } 346 336 347 /* add in source and sink terms from molecular network. */ 337 CodeReview(); /* Check... */ 338 if( nelem == ipISO && conv.nTotalIoniz ) 348 if( conv.nTotalIoniz > 1 || iteration > 1) 339 349 { 340 350 /* these are the external source and sink terms */ … … 343 353 sink += mole.sink[nelem][nelem-ipISO]; 344 354 } 345 #endif346 347 355 348 356 if( nelem-ipISO >= 1 && ionbal.RateIonizTot[nelem][nelem-ipISO-1] > 0.)
