Changeset 2085
- Timestamp:
- 05/19/08 12:30:10 (3 months ago)
- Location:
- trunk/source
- Files:
-
- 2 modified
-
ion_solver.cpp (modified) (2 diffs)
-
iso_level.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/ion_solver.cpp
r1960 r2085 294 294 * change ionization stages with this ladder - but do not remove from 295 295 * the ladder */ 296 for( ion_to=dense.IonLow[nelem]; ion_to <= limit; ion_to++ )296 for( ion_to=dense.IonLow[nelem]; ion_to <= dense.IonHigh[nelem]; ion_to++ ) 297 297 { 298 298 for( ion_from=dense.IonLow[nelem]; ion_from <= dense.IonHigh[nelem]; ++ion_from ) … … 477 477 478 478 totsrc += mole.source[nelem][ion]; 479 /* sink next */480 /*MAT( xmat, i, i ) += mole.sink[nelem][ion];*/481 479 MAT( xmat, i, i ) -= mole.sink[nelem][ion]; 482 480 } -
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.)
