Show
Ignore:
Timestamp:
04/10/08 12:44:47 (9 months ago)
Author:
rporter
Message:

trunk/source/iso_ionize_recombine.cpp - kill csupra is collisional ionization is disabled. Few other minor changes.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/source/iso_ionize_recombine.cpp

    r1925 r1937  
    143143                iso.RateLevel2Cont[ipISO][nelem][level] = iso.gamnc[ipISO][nelem][level] +  
    144144                  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]; 
    149146 
    150147                /* all processes from continuum to level n, units s-1 */ 
     
    166163        } 
    167164 
    168         /* all following go into or out of ground state */ 
    169         level = 0; 
    170  
    171165        /* now charge transfer - all into/from ground, two cases, H and not H */ 
    172166        if( nelem==ipHYDROGEN ) 
     
    174168                /* charge transfer, hydrogen onto everything else */ 
    175169                /* 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) 
    177171                { 
    178172                        iso.RateLevel2Cont[ipISO][nelem][level] += atmdat.HCharExcIonTotal; 
    179173                } 
    180174                /* charge exchange recombination */ 
    181                 iso.RateCont2Level[ipISO][nelem][ipH1s] += atmdat.HCharExcRecTotal; 
     175                iso.RateCont2Level[ipISO][nelem][0] += atmdat.HCharExcRecTotal; 
    182176        } 
    183177        else if( nelem==ipHELIUM && ipISO==ipHE_LIKE ) 
     
    228222        Recom3Body = 0.; 
    229223        /* >>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) 
    231225        { 
    232226