Show
Ignore:
Timestamp:
04/18/08 14:22:02 (9 months ago)
Author:
gary
Message:

ion_silic.cpp - comment out code that damped changed in valence shell photo rate - why was it there?

silicon - clean out dead code ion ion_silic.cpp -
sil.h - remove variable used to get pump rate
prt_lines_lv1_na_ar.cpp - use shell photo rate to get same pump rate

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/source/ion_silic.cpp

    r1732 r1950  
    3939        static long nzUsed = -1; 
    4040        static double OldRate = 0.; 
    41         double save_rec; 
    4241 
    4342        DEBUG_ENTRY( "IonSilic()" ); 
    4443 
    4544        /* silicon, atomic number 14 */ 
    46         if( !dense.lgElmtOn[ipSILICON] ) 
    47         { 
    48                 sil.p1895 = 0.; 
    49                 return; 
    50         } 
    5145 
    5246        ion_zero(ipSILICON); 
    5347 
    5448        ion_photo(ipSILICON,false); 
     49 
     50#       if 0 
     51        /* 2008 apr 18, this appears to try to damp out changes in the valence 
     52         * shell photo rate - perhaps due to Lya oscillations in dust free 
     53         * environments? */ 
    5554        if( nzone > 1 && OldRate > 0. ) 
    5655        { 
     
    6766        } 
    6867        OldRate = ionbal.PhotoRate_Shell[ipSILICON][0][4][0]; 
     68#       endif 
    6969 
    7070        /* find collisional ionization rates */ 
     
    7878        /*lint +e64 type mismatch */ 
    7979 
    80         /* pumping to 3p of Si III */ 
    81         sil.p1895 = ionbal.PhotoRate_Shell[ipSILICON][1][2][0]; 
    82  
    83         /* >>chng 03 sep 29, synch up ion and co solvers. 
    84          * the co solver will have a different C/C+ balance that 
    85          * is strongly affected by the chemistryif we are in neutral gas 
    86          * in this case use co solver's C/C+ balance */ 
    87         save_rec = ionbal.RateRecomTot[ipSILICON][0]; 
    88         /*>>chng 04 apr 27, do not test for ionhigh being 1, 
    89          * no reason for test on upper stage of ionization, 
    90          * if codrive called but not evaluted then hevmol is all zero */ 
    91         /* >>chng 04 sep 10, rm check on search phase, no reason for it */ 
    92 #       if 0 
    93         if( dense.IonLow[ipSILICON]==0  && /*!conv.lgSearch &&*/ 
    94                 co.hevmol[ipSIP] > SMALLFLOAT &&  
    95                 ionbal.RateIonizTot[ipSILICON][0]*co.hevmol[ipATSI]>0.) 
    96         { 
    97                 /* >>chng 04 sep 11, use damped ratio, were Si+ oscillations deep in molecular cloud, 
    98                  * where Si+ is dominant electron donor */ 
    99                 ionbal.RateRecomTot[ipSILICON][0] =  
    100                         ionbal.RateIonizTot[ipSILICON][0]* 
    101                         co.hevmol[ipATSI]/co.hevmol[ipSIP]; 
    102                 /*fprintf(ioQQQ,"DEBUG sil atm\t%.2f\t%.3e\t%.3e\t%.3e\n", 
    103                         fnzone ,  
    104                         co.hevmol[ipATSI], 
    105                         co.hevmol[ipSIP], 
    106                         ionbal.RateIonizTot[ipSILICON][0]);*/ 
    107         } 
    108 #       endif 
    109  
    11080        /* solve for ionization balance */ 
    11181        /*if( nzone>700 ) lgPrtDebug = true;*/ 
    11282        ion_solver(ipSILICON,lgPrtDebug); 
    11383 
    114         /* reset the var we just hosed */ 
    115         if( save_rec > 0. ) 
    116                 ionbal.RateRecomTot[ipSILICON][0] = save_rec;    
    117  
    118         /* get pmp rate cm-3 s-1 */ 
    119         sil.p1895 *= dense.xIonDense[ipSILICON][1]*0.85; 
    120  
     84#       if 0 
     85        /* 2008 apr 18, this is all dead code from when co network fed back from 
     86         * the ionization */ 
    12187        if( trace.lgTrace && trace.lgHeavyBug ) 
    12288        { 
     
    12894                fprintf( ioQQQ, "\n" ); 
    12995        } 
    130 #       if 0 
    13196        fprintf( ioQQQ, "DEBUG silicon\t%.2f",fnzone ); 
    13297        for( i=0; i < 2; i++ )