Changeset 1209
- Timestamp:
- 06/24/07 09:41:13 (11 months ago)
- Files:
-
- branches/newmole/source/hydrolevelpop.cpp (modified) (2 diffs)
- branches/newmole/source/iso_ionize_recombine.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/newmole/source/hydrolevelpop.cpp
r1137 r1209 16 16 #include "hydrogenic.h" 17 17 #include "dynamics.h" 18 #include "mole.h" 18 19 /*lint -e662 Possible access of out-of-bounds pointer*/ 19 20 … … 332 333 } 333 334 335 CodeReview(); /* Check signs */ 336 if( conv.nTotalIoniz > 1 || iteration > 1 ) 337 { 338 339 /* these are the external source and sink terms */ 340 /* source first */ 341 creation[ipH1s] += mole.source[nelem][i]/SDIV(dense.xIonDense[nelem][nelem+1]); 342 343 for( ipLo=ipH1s; ipLo<iso.numLevels_local[ipH_LIKE][nelem]; ++ipLo ) 344 { 345 z[ipLo][ipLo] += mole.sink[nelem][ipH_LIKE]; 346 } 347 } 348 334 349 /* =================================================================== 335 350 * branches/newmole/source/iso_ionize_recombine.cpp
r1137 r1209 9 9 #include "grainvar.h" 10 10 #include "hmi.h" 11 #include "mole.h"12 11 #include "secondaries.h" 13 12 #include "iso.h" … … 120 119 sum; 121 120 122 /** The following are rates used in determining the ionization balance of helium */123 float hep_destroy;124 125 121 DEBUG_ENTRY( "iso_ionize_recombine()" ); 126 122 … … 200 196 201 197 /* The following terms in co.c destroy He+ and thereby need to be included 202 * here. Also included in the sum of co.hep_destroy are the contributions 203 * to the recombination due to hmole_step.*/ 204 205 hep_destroy = (float) CO_sink_rate("He+"); 206 207 iso.RateCont2Level[ipISO][nelem][ipHe1s1S] += hep_destroy; 208 /*fprintf(ioQQQ,"DEBUG co hep destroy %e\n",co.hep_destroy );*/ 198 * here. */ 209 199 210 200 /* this is ioniz of He due to ct with all other gas constituents */
