Show
Ignore:
Timestamp:
01/12/08 13:18:02 (10 months ago)
Author:
rjrw
Message:

Further rationalise variable names and content of molecule object.

Location:
branches/newmole/source
Files:
45 modified

Legend:

Unmodified
Added
Removed
  • branches/newmole/source/age_check.cpp

    r1739 r1741  
    110110        tlong = MAX2( tlong , timesc.time_H2_Form_longest ); 
    111111 
    112         if( findspecies("CO")->xMoleFracMax < 1e-2 ) 
     112        if( findspecies("CO")->xFracLim < 1e-2 ) 
    113113        { 
    114114                timesc.BigCOMoleForm *= -1.; 
  • branches/newmole/source/cddrive.cpp

    r1739 r1741  
    708708                else if( strcmp( chLABEL_CAPS , "CO  " )==0 ) 
    709709                { 
    710                         *theocl = findspecies("CO")->hevcol; 
     710                        *theocl = findspecies("CO")->column; 
    711711                } 
    712712 
     
    714714                else if( strcmp( chLABEL_CAPS , "OH  " )==0 ) 
    715715                { 
    716                         *theocl = findspecies("OH")->hevcol; 
     716                        *theocl = findspecies("OH")->column; 
    717717                } 
    718718 
     
    720720                else if( strcmp( chLABEL_CAPS , "H2O " )==0 ) 
    721721                { 
    722                         *theocl = findspecies("H2O")->hevcol; 
     722                        *theocl = findspecies("H2O")->column; 
    723723                } 
    724724 
     
    726726                else if( strcmp( chLABEL_CAPS , "O2  " )==0 ) 
    727727                { 
    728                         *theocl = findspecies("O2")->hevcol; 
     728                        *theocl = findspecies("O2")->column; 
    729729                } 
    730730 
     
    732732                else if( strcmp( chLABEL_CAPS , "SIO " )==0 ) 
    733733                { 
    734                         *theocl = findspecies("SiO")->hevcol; 
     734                        *theocl = findspecies("SiO")->column; 
    735735                } 
    736736 
     
    738738                else if( strcmp( chLABEL_CAPS , "C2  " )==0 ) 
    739739                { 
    740                         *theocl = findspecies("C2")->hevcol; 
     740                        *theocl = findspecies("C2")->column; 
    741741                } 
    742742 
     
    744744                else if( strcmp( chLABEL_CAPS , "C3  " )==0 ) 
    745745                { 
    746                         *theocl = findspecies("C3")->hevcol; 
     746                        *theocl = findspecies("C3")->column; 
    747747                } 
    748748 
     
    750750                else if( strcmp( chLABEL_CAPS , "CN  " )==0 ) 
    751751                { 
    752                         *theocl = findspecies("CN")->hevcol; 
     752                        *theocl = findspecies("CN")->column; 
    753753                } 
    754754 
     
    756756                else if( strcmp( chLABEL_CAPS , "CH  " )==0 ) 
    757757                { 
    758                         *theocl = findspecies("CH")->hevcol; 
     758                        *theocl = findspecies("CH")->column; 
    759759                } 
    760760 
     
    762762                else if( strcmp( chLABEL_CAPS , "CH+ " )==0 ) 
    763763                { 
    764                         *theocl = findspecies("CH+")->hevcol; 
     764                        *theocl = findspecies("CH+")->column; 
    765765                } 
    766766 
  • branches/newmole/source/conv_base.cpp

    r1740 r1741  
    230230        for( i=0; i < mole.num_calc; i++ ) 
    231231        { 
    232                 mole_save[i] = (realnum) mole.list[i]->hevmol; 
     232                mole_save[i] = (realnum) mole.list[i]->den; 
    233233        } 
    234234 
     
    430430         
    431431                /* do all hydrogenic species, and fully do hydrogen itself, including molecules */ 
    432                 /*fprintf(ioQQQ,"DEBUG h2\t%.2f\t%.3e\t%.3e", fnzone,hmi.H2_total,findspecies("H2")->hevmol);*/ 
     432                /*fprintf(ioQQQ,"DEBUG h2\t%.2f\t%.3e\t%.3e", fnzone,hmi.H2_total,findspecies("H2")->den);*/ 
    433433                iso_solve( ipH_LIKE ); 
    434434 
     
    436436                H2_LevelPops(); 
    437437 
    438                 /*fprintf(ioQQQ,"\t%.3e\n", findspecies("H2")->hevmol);*/ 
     438                /*fprintf(ioQQQ,"\t%.3e\n", findspecies("H2")->den);*/ 
    439439 
    440440                /* evaluate Compton heating, bound E Compton, cosmic rays */ 
     
    542542                        IonOxyge();*/ 
    543543                        /* do carbon monoxide after oxygen */ 
    544                         /*fprintf(ioQQQ,"DEBUG co\t%.2f\t%.3e", fnzone,findspecies("CO")->hevmol);*/ 
     544                        /*fprintf(ioQQQ,"DEBUG co\t%.2f\t%.3e", fnzone,findspecies("CO")->den);*/ 
    545545                        /*CO_drive();*/ 
    546                         /*fprintf(ioQQQ,"\t%.3e\n", findspecies("CO")->hevmol);*/ 
     546                        /*fprintf(ioQQQ,"\t%.3e\n", findspecies("CO")->den);*/ 
    547547                        IonFluor(); 
    548548                        IonNeon(); 
     
    657657        if( conv.nTotalIoniz ) 
    658658        { 
    659                 if( fabs( hminus_old-findspecies("H-")->hevmol)/SDIV(findspecies("H-")->hevmol) > 
     659                if( fabs( hminus_old-findspecies("H-")->den)/SDIV(findspecies("H-")->den) > 
    660660                        conv.EdenErrorAllowed/4. ) 
    661661                        conv.lgConvIoniz = false; 
    662662                        strcpy( conv.chConvIoniz, "Big H- chn" ); 
    663663                        conv.BadConvIoniz[0] = hminus_old; 
    664                         conv.BadConvIoniz[1] = findspecies("H-")->hevmol; 
    665         } 
    666         hminus_old = findspecies("H-")->hevmol; 
     664                        conv.BadConvIoniz[1] = findspecies("H-")->den; 
     665        } 
     666        hminus_old = findspecies("H-")->den; 
    667667#       endif 
    668668 
     
    927927        for( i=0; i < mole.num_calc; ++i ) 
    928928        { 
    929                 if( fabs(mole.list[i]->hevmol-mole_save[i])/dense.gas_phase[ipHYDROGEN]-1. > 
     929                if( fabs(mole.list[i]->den-mole_save[i])/dense.gas_phase[ipHYDROGEN]-1. > 
    930930                        conv.EdenErrorAllowed/2.) 
    931931                { 
     
    933933                        sprintf( conv.chConvIoniz, "ch %-4.4s",mole.list[i]->label ); 
    934934                        conv.BadConvIoniz[0] = mole_save[i]/dense.gas_phase[ipHYDROGEN]; 
    935                         conv.BadConvIoniz[1] = mole.list[i]->hevmol/dense.gas_phase[ipHYDROGEN]; 
     935                        conv.BadConvIoniz[1] = mole.list[i]->den/dense.gas_phase[ipHYDROGEN]; 
    936936                } 
    937937        } 
  • branches/newmole/source/conv_init_solution.cpp

    r1740 r1741  
    134134                        if( dense.lgElmtOn[nelem] && mole.list[i]->location == NULL ) 
    135135                        { 
    136                                 realnum dens_elemsp = (realnum) mole.list[i]->hevmol*mole.list[i]->nElem[nelem]; 
     136                                realnum dens_elemsp = (realnum) mole.list[i]->den*mole.list[i]->nElem[nelem]; 
    137137                                if (    FracMoleMax*dense.gas_phase[nelem] < dens_elemsp )  
    138138                                { 
     
    148148        for(i=0;i<mole.num_calc;++i) 
    149149        { 
    150                 OxyInGrains += (1 - mole.list[i]->lgGas_Phase)*mole.list[i]->hevmol*mole.list[i]->nElem[ipOXYGEN];  
     150                OxyInGrains += (1 - mole.list[i]->lgGas_Phase)*mole.list[i]->den*mole.list[i]->nElem[ipOXYGEN];  
    151151        } 
    152152        /* this is now fraction of O in ices */ 
  • branches/newmole/source/conv_itercheck.cpp

    r1740 r1741  
    156156 
    157157                        /* was the species abundance and changing? */ 
    158                         differ = (double)fabs(mole.list[i]->hevcol_old-mole.list[i]->hevcol) / 
    159                                 (double)SDIV(mole.list[i]->hevcol); 
    160                         if( (mole.list[i]->hevcol/colden.colden[ipCOL_HTOT] > 1e-5) && 
     158                        differ = (double)fabs(mole.list[i]->column_old-mole.list[i]->column) / 
     159                                (double)SDIV(mole.list[i]->column); 
     160                        if( (mole.list[i]->column/colden.colden[ipCOL_HTOT] > 1e-5) && 
    161161                                (differ > conv.autocv) ) 
    162162                        { 
     
    168168                                strcpy( conv.chNotConverged, "CO mol col" ); 
    169169                                /*fprintf(ioQQQ,"debugggreset\t CO mole %li %li %.2e %.2e\n", 
    170                                         i,iteration,mole.list[i]->hevcol_old,mole.list[i]->hevcol);*/ 
     170                                        i,iteration,mole.list[i]->column_old,mole.list[i]->column);*/ 
    171171 
    172172                                if( punch.lgPunConv ) 
    173173                                { 
    174174                                        fprintf( punch.ipPunConv, "CO mol col, old:%.3e new:%.3e\n" , 
    175                                                 mole.list[i]->hevcol_old , 
    176                                                 mole.list[i]->hevcol ); 
     175                                                mole.list[i]->column_old , 
     176                                                mole.list[i]->column ); 
    177177                                } 
    178178                        } 
  • branches/newmole/source/conv_temp_eden_ioniz.cpp

    r1739 r1741  
    184184                                         * >>refer      H2      temperature law Sternberg, A., & Neufeld, D.A. 1999, ApJ, 516, 371-380 */ 
    185185                                        TeNew = thermal.T0SN99 /  
    186                                                 /*(realnum)(1.f + 9.*pow(2.*findspecies("H2")->hevmol/dense.gas_phase[ipHYDROGEN], 4.) );*/ 
     186                                                /*(realnum)(1.f + 9.*pow(2.*findspecies("H2")->den/dense.gas_phase[ipHYDROGEN], 4.) );*/ 
    187187                                                (realnum)(1.f + 9.*pow(2.*hmi.H2_total/dense.gas_phase[ipHYDROGEN], 4.) ); 
    188188                                } 
     
    371371                        /* SIGN: sign of sec arg and abs val of first */ 
    372372                        /* >>chng 96 nov 08, from 0.1 to 0.08 in fneut */ 
    373                         /*fneut = (dense.xIonDense[ipHYDROGEN][0] + 2.*findspecies("H2")->hevmol)/dense.gas_phase[ipHYDROGEN];*/ 
     373                        /*fneut = (dense.xIonDense[ipHYDROGEN][0] + 2.*findspecies("H2")->den)/dense.gas_phase[ipHYDROGEN];*/ 
    374374                        fneut = (dense.xIonDense[ipHYDROGEN][0] + 2.*hmi.H2_total)/dense.gas_phase[ipHYDROGEN]; 
    375375                        /*>>chng 04 jan 11, when big H2 is on and heating is important, 
  • branches/newmole/source/cool_carb.cpp

    r1739 r1741  
    245245        /** \todo       1       add neutral helium Staemmler, V., & Flower, D. R. 1991, J. Phys. B, 24, 2343 */ 
    246246        /* assume CS for He^0 is the same as H^0*/ 
    247         /*cs01 = cse01 + 3.*(csh01*(dense.xIonDense[ipHYDROGEN][0]+dense.xIonDense[ipHELIUM][0]) + csh201*findspecies("H2")->hevmol)/dense.cdsqte; 
    248         cs12 = cse12 + 5.*(csh12*(dense.xIonDense[ipHYDROGEN][0]+dense.xIonDense[ipHELIUM][0]) + csh212*findspecies("H2")->hevmol)/dense.cdsqte; 
    249         cs02 = cse02 + 5.*(csh02*(dense.xIonDense[ipHYDROGEN][0]+dense.xIonDense[ipHELIUM][0]) + csh202*findspecies("H2")->hevmol)/dense.cdsqte;*/ 
     247        /*cs01 = cse01 + 3.*(csh01*(dense.xIonDense[ipHYDROGEN][0]+dense.xIonDense[ipHELIUM][0]) + csh201*findspecies("H2")->den)/dense.cdsqte; 
     248        cs12 = cse12 + 5.*(csh12*(dense.xIonDense[ipHYDROGEN][0]+dense.xIonDense[ipHELIUM][0]) + csh212*findspecies("H2")->den)/dense.cdsqte; 
     249        cs02 = cse02 + 5.*(csh02*(dense.xIonDense[ipHYDROGEN][0]+dense.xIonDense[ipHELIUM][0]) + csh202*findspecies("H2")->den)/dense.cdsqte;*/ 
    250250        cs01 = cse01 + 3.*(csh01*(dense.xIonDense[ipHYDROGEN][0]+dense.xIonDense[ipHELIUM][0]) + csp01*dense.xIonDense[ipHYDROGEN][1] + csh201*hmi.H2_total)/dense.cdsqte; 
    251251        cs12 = cse12 + 5.*(csh12*(dense.xIonDense[ipHYDROGEN][0]+dense.xIonDense[ipHELIUM][0]) + csp12*dense.xIonDense[ipHYDROGEN][1] + csh212*hmi.H2_total)/dense.cdsqte; 
     
    379379        /*cs = MIN2(2.20,0.403*phycon.te20/phycon.te02*phycon.te001*phycon.te001) +  
    380380          5.8e-10*phycon.te02/dense.cdsqte*4.*(dense.xIonDense[ipHYDROGEN][0] +  
    381           findspecies("H2")->hevmol);*/ 
     381          findspecies("H2")->den);*/ 
    382382        /* electron collision strength */ 
    383383        cse12 = MIN2(2.20,0.403*phycon.te20/phycon.te02*phycon.te001*phycon.te001); 
     
    386386        /* >>referold   c2      cs      Tielens, A.G.G., & Hollenbach, D. 1985, ApJ, 291, 722 */ 
    387387        /*cs_c2_h12 = 5.8e-10*phycon.te02/dense.cdsqte*4.*(dense.xIonDense[ipHYDROGEN][0] +  
    388           findspecies("H2")->hevmol);*/ 
     388          findspecies("H2")->den);*/ 
    389389        /* >> chng 05 may 21, GS, rate with hydrogen is updated from following */ 
    390390        /* >>refer      c2      cs      Barinovs, G., van Hemert, M., Krems, R. & Dalgarno, A. 2005, ApJ, 620, 537 */ 
     
    402402 
    403403        /* now convert rate into equivalent cs */ 
    404         cs_c2_h12 *= 4.*(dense.xIonDense[ipHYDROGEN][0] + findspecies("H2")->hevmol)/dense.cdsqte; 
     404        cs_c2_h12 *= 4.*(dense.xIonDense[ipHYDROGEN][0] + findspecies("H2")->den)/dense.cdsqte; 
    405405 
    406406        /* >>chng 05 apr 10, make sure we have good current set of vars */ 
     
    441441                                csh12, 
    442442                                dense.eden, 
    443                                 (dense.xIonDense[ipHYDROGEN][0] + findspecies("H2")->hevmol)/dense.cdsqte); 
     443                                (dense.xIonDense[ipHYDROGEN][0] + findspecies("H2")->den)/dense.cdsqte); 
    444444                } 
    445445        } 
  • branches/newmole/source/cool_eval.cpp

    r1739 r1741  
    269269 
    270270                        /*  low density rotation cooling */ 
    271                         /*&qn = pow(MAX2(findspecies("H2")->hevmol,1e-37),0.77) + 1.2*pow(MAX2(dense.xIonDense[ipHYDROGEN][0],1e-37),0.77);*/ 
     271                        /*&qn = pow(MAX2(findspecies("H2")->den,1e-37),0.77) + 1.2*pow(MAX2(dense.xIonDense[ipHYDROGEN][0],1e-37),0.77);*/ 
    272272                        qn = pow(MAX2(hmi.H2_total,1e-37),0.77) + 1.2*pow(MAX2(dense.xIonDense[ipHYDROGEN][0],1e-37),0.77); 
    273273                        /* these are equations 11 from LS83 */ 
     
    283283                        if( rotlow > 0. ) 
    284284                        { 
    285                                 /*CoolHeavy.h2line = findspecies("H2")->hevmol*rothi/(1. + rothi/rotlow);*/ 
     285                                /*CoolHeavy.h2line = findspecies("H2")->den*rothi/(1. + rothi/rotlow);*/ 
    286286                                CoolHeavy.h2line = hmi.H2_total*rothi/(1. + rothi/rotlow); 
    287287                        } 
     
    300300                                        CoolHeavy.h2line,  
    301301                                        hmi.H2_total,  
    302                                         findspecies("H-")->hevmol,  
     302                                        findspecies("H-")->den,  
    303303                                        hmi.HMinus_photo_rate, 
    304304                                        rothi, 
     
    310310                 * >>refer      HD      cooling Puy, D., Grenacher, L, & Jetzer, P., 1999, A&A, 345, 723 */ 
    311311                factor = sexp(128.6/phycon.te); 
    312                 /*CoolHeavy.HD = 2.66e-21 * hydro.D2H_ratio * POW2(findspecies("H2")->hevmol) * phycon.sqrte * 
    313                         factor/(1416.+phycon.sqrte*findspecies("H2")->hevmol * (1. + 3.*factor));*/ 
     312                /*CoolHeavy.HD = 2.66e-21 * hydro.D2H_ratio * POW2(findspecies("H2")->den) * phycon.sqrte * 
     313                        factor/(1416.+phycon.sqrte*findspecies("H2")->den * (1. + 3.*factor));*/ 
    314314                CoolHeavy.HD = 2.66e-21 * hydro.D2H_ratio * POW2(hmi.H2_total) * phycon.sqrte * 
    315                         /*factor/(1416.+phycon.sqrte*findspecies("H2")->hevmol * (1. + 3.*factor));*/ 
     315                        /*factor/(1416.+phycon.sqrte*findspecies("H2")->den * (1. + 3.*factor));*/ 
    316316                        factor/(1416.+phycon.sqrte*hmi.H2_total * (1. + 3.*factor)); 
    317317        } 
     
    352352                        hmi.H2_total ,  
    353353                        CoolHeavy.h2line, 
    354                         findspecies("H-")->hevmol ,  
     354                        findspecies("H-")->den ,  
    355355                        dense.eden); 
    356356                } 
  • branches/newmole/source/cool_oxyg.cpp

    r1739 r1741  
    343343                phycon.te70/phycon.te01)*dense.xIonDense[ipHYDROGEN][1]/dense.EdenHCorr; 
    344344 
    345         /*cs01 = cse01+csp01+3.*(csh01*dense.xIonDense[ipHYDROGEN][0] + cshe01*dense.xIonDense[ipHELIUM][0] + csh201*findspecies("H2")->hevmol)/ 
     345        /*cs01 = cse01+csp01+3.*(csh01*dense.xIonDense[ipHYDROGEN][0] + cshe01*dense.xIonDense[ipHELIUM][0] + csh201*findspecies("H2")->den)/ 
    346346                dense.cdsqte; 
    347         cs12 = cse12+csp12+(csh12*dense.xIonDense[ipHYDROGEN][0] + cshe12*dense.xIonDense[ipHELIUM][0] + csh212*findspecies("H2")->hevmol)/ 
     347        cs12 = cse12+csp12+(csh12*dense.xIonDense[ipHYDROGEN][0] + cshe12*dense.xIonDense[ipHELIUM][0] + csh212*findspecies("H2")->den)/ 
    348348                dense.cdsqte; 
    349         cs02 = cse02+csp02+(csh02*dense.xIonDense[ipHYDROGEN][0] + cshe02*dense.xIonDense[ipHELIUM][0] + csh202*findspecies("H2")->hevmol)/ 
     349        cs02 = cse02+csp02+(csh02*dense.xIonDense[ipHYDROGEN][0] + cshe02*dense.xIonDense[ipHELIUM][0] + csh202*findspecies("H2")->den)/ 
    350350                dense.cdsqte;*/ 
    351351 
  • branches/newmole/source/dynamics.cpp

    r1740 r1741  
    740740                                for(i=0;i<mole.num_calc;i++)  
    741741                                { 
    742                                         sumh += (realnum) mole.list[i]->hevmol*mole.list[i]->nElem[nelem]; 
     742                                        sumh += (realnum) mole.list[i]->den*mole.list[i]->nElem[nelem]; 
    743743                                } 
    744744                                fprintf(ioQQQ, 
     
    23212321                        Hep_mean , 
    23222322                        /* ratio of CO to total H column densities */ 
    2323                         findspecies("CO")->hevcol / SDIV( colden.colden[ipCOL_HTOT] )); 
     2323                        findspecies("CO")->column / SDIV( colden.colden[ipCOL_HTOT] )); 
    23242324        } 
    23252325        else 
  • branches/newmole/source/grains.cpp

    r1739 r1741  
    48974897        /* molecular hydrogen onto grains */ 
    48984898#ifndef IGNORE_GRAIN_ION_COLLISIONS 
    4899         /*CollisionRateMol = Accommodation*findspecies("H2")->hevmol* */ 
     4899        /*CollisionRateMol = Accommodation*findspecies("H2")->den* */ 
    49004900        CollisionRateMol = Accommodation*hmi.H2_total* 
    49014901                sqrt(8.*BOLTZMANN/PI/ATOMIC_MASS_UNIT/WeightMol*phycon.te); 
     
    49184918        Accommodation = 2.*gv.bin[nd]->atomWeight*WeightMol/POW2(gv.bin[nd]->atomWeight+WeightMol); 
    49194919#ifndef IGNORE_GRAIN_ION_COLLISIONS 
    4920         CollisionRateMol += Accommodation*findspecies("CO")->hevmol* 
     4920        CollisionRateMol += Accommodation*findspecies("CO")->den* 
    49214921                sqrt(8.*BOLTZMANN/PI/ATOMIC_MASS_UNIT/WeightMol*phycon.te); 
    49224922#else 
  • branches/newmole/source/heat_sum.cpp

    r1740 r1741  
    117117        { 
    118118                if(mole.list[i]->location == NULL) 
    119                         AtomicCollidDensity += mole.list[i]->hevmol; 
     119                        AtomicCollidDensity += mole.list[i]->den; 
    120120        } 
    121121 
     
    268268                                                * opacity_addtotal 
    269269                                                */ 
    270         dense.xIonDense[ipOXYGEN][0] += (realnum) findspecies("CO")->hevmol; 
    271         dense.xIonDense[ipCARBON][0] += (realnum) findspecies("CO")->hevmol; 
     270        dense.xIonDense[ipOXYGEN][0] += (realnum) findspecies("CO")->den; 
     271        dense.xIonDense[ipCARBON][0] += (realnum) findspecies("CO")->den; 
    272272 
    273273        /* this will hold cooling due to metal collisional ionization */ 
     
    482482         * assuming H0 rates */ 
    483483        /*>>KEYWORD     H2+ photoionization heating; H3+ photoionization heating */ 
    484         thermal.heating[0][26] = (findspecies("H2+")->hevmol+findspecies("H3+")->hevmol) * 
     484        thermal.heating[0][26] = (findspecies("H2+")->den+findspecies("H3+")->den) * 
    485485                (ionbal.PhotoRate_Shell[ipHYDROGEN][0][0][1] +  
    486486                ionbal.PhotoRate_Shell[ipHYDROGEN][0][0][2]*secondaries.heatef); 
     
    496496                { 
    497497                        /* limit where most H is ionized - simply use atomic and H2 */ 
    498                         hneut = dense.xIonDense[ipHYDROGEN][0] + 2.*(findspecies("H2")->hevmol+findspecies("H2*")->hevmol); 
     498                        hneut = dense.xIonDense[ipHYDROGEN][0] + 2.*(findspecies("H2")->den+findspecies("H2*")->den); 
    499499                } 
    500500                else 
  • branches/newmole/source/highen.cpp

    r1739 r1741  
    154154                 * term we actually want eden, so mult by eden over sum of neut */ 
    155155                heat_cold_electrons = 5.5e-14/sqthot*CosRayDen* 
    156                         /*dense.eden/(dense.xIonDense[ipHYDROGEN][0] + dense.xIonDense[ipHELIUM][0] + findspecies("H2")->hevmol);*/ 
     156                        /*dense.eden/(dense.xIonDense[ipHYDROGEN][0] + dense.xIonDense[ipHELIUM][0] + findspecies("H2")->den);*/ 
    157157                        dense.eden/(dense.xIonDense[ipHYDROGEN][0] + dense.xIonDense[ipHELIUM][0] + hmi.H2_total); 
    158158 
  • branches/newmole/source/ion_nitro.cpp

    r1739 r1741  
    6363        /*>>chng 04 apr 24, do not test for ionhigh being 1, 
    6464         * no reason for test on upper stage of ionization, 
    65          * if codrive called but not evaluated then hevmol is all zero */ 
     65         * if codrive called but not evaluated then den is all zero */ 
    6666        /* >>chng 04 sep 10, rm check on search phase, no reason for it */ 
    6767#       if 0 
    6868        if( dense.IonLow[ipNITROGEN]==0 && /*!conv.lgSearch &&*/ 
    69                 co.hevmol[ipNP] > SMALLFLOAT &&  
    70                 ionbal.RateIonizTot[ipNITROGEN][0]*co.hevmol[ipATN]> 0. ) 
     69                co.den[ipNP] > SMALLFLOAT &&  
     70                ionbal.RateIonizTot[ipNITROGEN][0]*co.den[ipATN]> 0. )