Changeset 1937 for trunk/source/iso_ionize_recombine.cpp
- Timestamp:
- 04/10/08 12:44:47 (9 months ago)
- Files:
-
- 1 modified
-
trunk/source/iso_ionize_recombine.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/iso_ionize_recombine.cpp
r1925 r1937 143 143 iso.RateLevel2Cont[ipISO][nelem][level] = iso.gamnc[ipISO][nelem][level] + 144 144 iso.ColIoniz[ipISO][nelem][level]* dense.EdenHCorr + 145 /* >>chng 04 nov 30, also turn off cr ionization with atom h-like collisions off */ 146 /* >>chng 05 aug 17, do not turn off cosmic rays with no collisional ionization 147 * simply leave out crs if this is desired - this allows leiden hacks to work */ 148 secondaries.csupra[nelem][nelem-ipISO]/* *iso.lgColl_ionize[ipISO]*/; 145 secondaries.csupra[nelem][nelem-ipISO]*iso.lgColl_ionize[ipISO]; 149 146 150 147 /* all processes from continuum to level n, units s-1 */ … … 166 163 } 167 164 168 /* all following go into or out of ground state */169 level = 0;170 171 165 /* now charge transfer - all into/from ground, two cases, H and not H */ 172 166 if( nelem==ipHYDROGEN ) … … 174 168 /* charge transfer, hydrogen onto everything else */ 175 169 /* charge exchange ionization, these come out of every level */ 176 for( level= ipH1s; level< iso.numLevels_local[ipISO][nelem]; ++level)170 for( level=0; level< iso.numLevels_local[ipISO][nelem]; ++level) 177 171 { 178 172 iso.RateLevel2Cont[ipISO][nelem][level] += atmdat.HCharExcIonTotal; 179 173 } 180 174 /* charge exchange recombination */ 181 iso.RateCont2Level[ipISO][nelem][ ipH1s] += atmdat.HCharExcRecTotal;175 iso.RateCont2Level[ipISO][nelem][0] += atmdat.HCharExcRecTotal; 182 176 } 183 177 else if( nelem==ipHELIUM && ipISO==ipHE_LIKE ) … … 228 222 Recom3Body = 0.; 229 223 /* >>chng 06 jul 20, level should go to numLevels_local instead of numLevels_max */ 230 for( level= ipH1s; level< iso.numLevels_local[ipISO][nelem]; ++level)224 for( level=0; level< iso.numLevels_local[ipISO][nelem]; ++level) 231 225 { 232 226
