Changeset 1144 for trunk/source/pressure_total.cpp
- Timestamp:
- 05/21/07 20:25:16 (20 months ago)
- Files:
-
- 1 modified
-
trunk/source/pressure_total.cpp (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/pressure_total.cpp
r1113 r1144 172 172 dense.xMassDensity = (float)(dense.wmole*ATOMIC_MASS_UNIT*dense.pden); 173 173 174 /*>>chng 04 may 25, introduce foll ing test on xMassDensity0174 /*>>chng 04 may 25, introduce following test on xMassDensity0 175 175 * WJH 21 may 04, this is the mass density that corresponds to the hden 176 176 * specified in the init file. It is used to calculate the mass flux in the … … 282 282 TotalInsanity(); 283 283 /* >>chng 01 jan 08, do not include highest level since maser can occur, 284 * and pops are set to small number in this case */284 * and pops are set to small number in this case */ 285 285 /* >>chng 06 aug 17, should go to numLevels_local instead of _max. */ 286 286 for( ipLo=0; ipLo < (iso.numLevels_local[ipISO][nelem] - 2); ipLo++ ) … … 330 330 /* >>chng 04 may 13, add Aul > 10 to prevent forbidden lines with 331 331 * tiny optical depths - taumin doubled - occur, but still opt thin 332 * sympto nwas very large radiation pressure from Paschen beta */332 * symptom was very large radiation pressure from Paschen beta */ 333 333 /* >>chng 04 aug 28, add test on ipCont being positive to skip bogus lines*/ 334 /*NB - this code must be ke p parrallel with code in prt_linepres */334 /*NB - this code must be keep parallel with code in prt_linepres */ 335 335 if( Transitions[ipISO][nelem][ipHi][ipLo].Emis.ipCont > 0 && 336 336 Transitions[ipISO][nelem][ipHi][ipLo].Emis.Aul > 10. && 337 337 Transitions[ipISO][nelem][ipHi][ipLo].Hi.Pop > smallfloat && 338 338 /* >>chng 04 may 21, change PopOpc to poplo as defined above, 339 * to not over count 23P of He */339 * to not over count 23P of He */ 340 340 /*Transitions[ipISO][nelem][ipHi][ipLo].PopOpc > smallfloat &&*/ 341 341 poplo > smallfloat && … … 351 351 StatesElem[ipISO][nelem][ipHi].g)/ 352 352 /* >>chng 04 may 21, change PopOpc to poplo as defined above, 353 * to not over count 23P of He */353 * to not over count 23P of He */ 354 354 /*(Transitions[ipISO][nelem][ipHi][ipLo].PopOpc/ */ 355 355 (poplo/ … … 709 709 { 710 710 /* this branch is time dependent AND constant density */ 711 /*fprintf(ioQQQ,"DEBUG enthalp hHIT1\n");*/711 /*fprintf(ioQQQ,"DEBUG enthalpy HIT1\n");*/ 712 712 /* this is the time-varying case where density is constant */ 713 /* \todo 1 this has 3/2 on the PresGasCurr while tru le dynamics case below713 /* \todo 1 this has 3/2 on the PresGasCurr while true dynamics case below 714 714 * has 5/2 - so this is not really the enthalpy density - better 715 715 * would be to always use this term and add the extra PresGasCurr … … 723 723 { 724 724 /* this branch either advective or constant pressure */ 725 /*fprintf(ioQQQ,"DEBUG enthalp hHIT2\n");*/725 /*fprintf(ioQQQ,"DEBUG enthalpy HIT2\n");*/ 726 726 /* this is usual dynamics case, or time-varying case where pressure 727 727 * is kept constant and PdV work is added to the cell */ … … 740 740 /* >>chng 05 feb 03, do not update RadBetaMax in this block, wait until 741 741 * following, which also protects against the evaluation before zone 1, 742 * when sol n may not be stable742 * when solution may not be stable 743 743 pressure.RadBetaMax = (float)MAX2(pressure.RadBetaMax,pressure.pbeta); */ 744 744 /* stop RadPres from exceeding the gas pressure on first iteration */ … … 767 767 /*@+redef@*/ 768 768 /*lint -e644 Piso_seq not initialized */ 769 /* trace verious constituents in radiation pressure */769 /* trace serious constituents in radiation pressure */ 770 770 if( DEBUG_LOC ) 771 771 { … … 823 823 else if( ipSet == 8 ) 824 824 { 825 /* hyperfi le struct lines */825 /* hyperfine struct lines */ 826 826 strcpy( pressure.chLineRadPres, "hyperf "); 827 827 ASSERT( ip1>=0 ); … … 875 875 876 876 { 877 /*@-redef@*/878 877 enum{DEBUG_LOC=false}; 879 /*@+redef@*/880 878 if( DEBUG_LOC && pressure.PresTotlCurr > SMALLFLOAT /*&& iteration > 1*/ ) 881 879 {
