Changeset 1916
- Timestamp:
- 04/04/08 03:02:50 (8 months ago)
- Location:
- branches/c08_branch
- Files:
-
- 42 modified
-
data/LineList_BLR.dat (modified) (1 diff)
-
data/LineList_HeH.dat (modified) (1 diff)
-
data/LineList_HII.dat (modified) (1 diff)
-
data/LineList_NLR.dat (modified) (4 diffs)
-
data/LineList_PDR.dat (modified) (1 diff)
-
data/LineList_PDR_H2.dat (modified) (1 diff)
-
source/cddefines.h (modified) (1 diff)
-
source/cdgetlinelist.cpp (modified) (3 diffs)
-
source/container_classes.h (modified) (1 diff)
-
source/cont_createmesh.cpp (modified) (1 diff)
-
source/elements.txt (modified) (1 diff)
-
source/init_coreload.cpp (modified) (1 diff)
-
source/init_sim_postparse.cpp (modified) (2 diffs)
-
source/iso.h (modified) (1 diff)
-
source/iso_create.cpp (modified) (1 diff)
-
source/iso_level.cpp (modified) (4 diffs)
-
source/parse_atom_iso.cpp (modified) (1 diff)
-
source/parse_table.cpp (modified) (1 diff)
-
source/prt_alltau.cpp (modified) (2 diffs)
-
source/prt_comment.cpp (modified) (2 diffs)
-
source/prt_lines_hydro.cpp (modified) (3 diffs)
-
source/prt_met.cpp (modified) (2 diffs)
-
source/zero.cpp (modified) (1 diff)
-
tsuite/auto/blr_f92.in (modified) (1 diff)
-
tsuite/auto/blr_fp89.in (modified) (3 diffs)
-
tsuite/auto/blr_kk81.in (modified) (6 diffs)
-
tsuite/auto/blr_n13_p18.in (modified) (1 diff)
-
tsuite/auto/blr_n13_p18_Z20.in (modified) (1 diff)
-
tsuite/auto/blr_rnfa.in (modified) (3 diffs)
-
tsuite/auto/blr_rnfb.in (modified) (3 diffs)
-
tsuite/auto/func_grid.in (modified) (1 diff)
-
tsuite/auto/hhe_otspp.in (modified) (1 diff)
-
tsuite/auto/hhe_outppff.in (modified) (1 diff)
-
tsuite/auto/hii_paris.in (modified) (1 diff)
-
tsuite/auto/h_t4_conemis_thick.in (modified) (2 diffs)
-
tsuite/auto/orion_hii_dist_grn.in (modified) (3 diffs)
-
tsuite/auto/orion_hii_open.in (modified) (2 diffs)
-
tsuite/auto/orion_hii_pdr.in (modified) (5 diffs)
-
tsuite/auto/orion_hii_pdr_pp.in (modified) (1 diff)
-
tsuite/auto/orion_hii_single_grn.in (modified) (2 diffs)
-
tsuite/auto/pn_fluc.in (modified) (1 diff)
-
tsuite/auto/pn_paris.in (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/c08_branch/data/LineList_BLR.dat
r486 r1916 132 132 BA C 0 total of integrated H balmer continuum 133 133 BaC 3646 total nuFnu of Balmer jump at 3646 (the head) 134 h 1 3835 total H-7 (H-Balmer)134 #h 1 3835 total H-7 (H-Balmer) 135 135 He 1 3889 total H-6 (H-Balmer) 136 136 ca2k 3934 total Ca II 3934 emission 137 137 ca2h 3969 total Ca II 3969 emission 138 h 1 3970 total H-epsilon138 #h 1 3970 total H-epsilon 139 139 h 1 4102 total H-delta 140 140 #inwd 4102 inward flux of H-delta -
branches/c08_branch/data/LineList_HeH.dat
r495 r1916 79 79 He 1 2.060m 80 80 He 1 2.112m 81 H 1 916.4A82 H 1 917.2A83 H 1 918.1A84 H 1 919.4A85 H 1 921.0A86 H 1 923.2A87 H 1 926.2A88 H 1 930.8A89 H 1 937.8A90 H 1 949.7A91 H 1 972.5A81 #H 1 916.4A 82 #H 1 917.2A 83 #H 1 918.1A 84 #H 1 919.4A 85 #H 1 921.0A 86 #H 1 923.2A 87 #H 1 926.2A 88 #H 1 930.8A 89 #H 1 937.8A 90 #H 1 949.7A 91 #H 1 972.5A 92 92 H 1 1026A 93 93 H 1 1216A 94 H 1 367195 H 1 367496 H 1 367697 H 1 367998 H 1 368399 H 1 3687100 H 1 3692101 H 1 3697102 H 1 3704103 H 1 3712104 H 1 3722105 H 1 3734106 H 1 3750107 H 1 3771108 H 1 3798109 H 1 3835110 H 1 3889111 H 1 397094 #H 1 3671 95 #H 1 3674 96 #H 1 3676 97 #H 1 3679 98 #H 1 3683 99 #H 1 3687 100 #H 1 3692 101 #H 1 3697 102 #H 1 3704 103 #H 1 3712 104 #H 1 3722 105 #H 1 3734 106 #H 1 3750 107 #H 1 3771 108 #H 1 3798 109 #H 1 3835 110 #H 1 3889 111 #H 1 3970 112 112 H 1 4102 113 113 H 1 4340 114 114 H 1 4861 115 115 H 1 6563A 116 H 1 8598A117 H 1 8665A118 H 1 8750A119 H 1 8863A120 H 1 9015A121 H 1 9229A116 #H 1 8598A 117 #H 1 8665A 118 #H 1 8750A 119 #H 1 8863A 120 #H 1 9015A 121 #H 1 9229A -
branches/c08_branch/data/LineList_HII.dat
r323 r1916 74 74 ca 2 8579 75 75 s 3 9069 76 H 1 922976 #H 1 9229 77 77 s 3 9532 78 78 h 1 9546 -
branches/c08_branch/data/LineList_NLR.dat
r13 r1916 133 133 Ca2k 3934 134 134 Ca2h 3969 135 h 1 3970 total H-epsilon135 #h 1 3970 total H-epsilon 136 136 S II 4070 137 137 S 2 4074 … … 188 188 ca 2 8579 189 189 s 3 9069 190 H 1 9229190 #H 1 9229 191 191 s 3 9532 192 h 1 9546192 #h 1 9546 193 193 totl 9850 194 194 PA C 0 … … 206 206 H 1 1.282m 207 207 H 1 1.094m 208 H 1 1.005m208 #H 1 1.005m 209 209 # 210 210 # Brackett series … … 212 212 H 1 4.051m 213 213 H 1 2.625m 214 H 1 2.166m Brackett gamma215 H 1 1.945m214 #H 1 2.166m Brackett gamma 215 #H 1 1.945m 216 216 # 217 217 # IR and coronal lines -
branches/c08_branch/data/LineList_PDR.dat
r491 r1916 17 17 H 1 1.875m Paschen alpha 4-3 18 18 H 1 4.051m Br alpha 5-4 19 H 1 2.166m Br gamma20 H 1 1.945m Br delta19 #H 1 2.166m Br gamma 20 #H 1 1.945m Br delta 21 21 H 1 7.458m Pfund alpha 6-5 22 H 1 12.37m Humphries alpha 7-623 H 1 19.06m 8-722 #H 1 12.37m Humphries alpha 7-6 23 #H 1 19.06m 8-7 24 24 # 25 25 # some lines from the H+ region -
branches/c08_branch/data/LineList_PDR_H2.dat
r1413 r1916 16 16 H 1 1.875m Paschen alpha 4-3 17 17 H 1 4.051m Br alpha 5-4 18 H 1 2.166m Br gamma19 H 1 1.945m Br delta18 #H 1 2.166m Br gamma 19 #H 1 1.945m Br delta 20 20 H 1 7.458m Pfund alpha 6-5 21 H 1 12.37m Humphries alpha 7-622 H 1 19.06m 8-721 #H 1 12.37m Humphries alpha 7-6 22 #H 1 19.06m 8-7 23 23 # 24 24 # strong optical lines from H+ region -
branches/c08_branch/source/cddefines.h
r1912 r1916 1563 1563 * line 126 */ 1564 1564 # pragma warning( disable : 4512 ) 1565 /* disable "'extern' before template explicit instantiation" */1566 # pragma warning( disable : 4231 )1567 1565 #endif 1568 1566 #ifdef __INTEL_COMPILER -
branches/c08_branch/source/cdgetlinelist.cpp
r1815 r1916 2 2 * others. For conditions of distribution and use see copyright notice in license.txt */ 3 3 /*cdGetLineList routine to read in master list of emission line wavelengths and ids, for 4 * generating loc grids, 5 * someday add cdGetNLRLineList */ 4 * generating loc grids */ 6 5 #include "cddefines.h" 7 6 #include "cddrive.h" … … 38 37 chFilename = ( strlen(chFile) == 0 ) ? "LineList_BLR.dat" : chFile; 39 38 40 /* >>chng 04 nov 06, had searched only on path, now search locally41 * and then on path if not found */42 39 /* we will check local space first, then on path if not present */ 43 40 ioData = open_data( chFilename, "r", AS_LOCAL_DATA_TRY ); 44 41 45 42 if( ioData == NULL ) 43 { 44 /* did not find file, return -1 */ 46 45 return -1; 46 } 47 47 48 48 /* count how many lines are in the file, ignoring all lines … … 69 69 70 70 /* create 1-d array of string labels */ 71 /* create first dim of space for labels */72 71 *chLabels = (char**)MALLOC((size_t)(nLines+1)*sizeof(char *) ); 73 72 -
branches/c08_branch/source/container_classes.h
r1912 r1916 1713 1713 #endif 1714 1714 1715 #ifdef _MSC_VER 1716 /* disable "'extern' before template explicit instantiation" */ 1717 # pragma warning( disable : 4231 ) 1718 #endif 1719 1715 1720 // on Mac systems these instantiations need to be extern in order to avoid duplicate symbols 1716 1721 #define INSTANTIATE_MULTI_ARR( TYPE, LAYOUT, BC ) \ -
branches/c08_branch/source/cont_createmesh.cpp
r1815 r1916 447 447 448 448 /* frequency range in Rydberg needed for all resonance lines */ 449 rfield.fine_ener_lo = 0. 1f;449 rfield.fine_ener_lo = 0.05f; 450 450 rfield.fine_ener_hi = 1500.f; 451 451 -
branches/c08_branch/source/elements.txt
r646 r1916 50 50 /* string giving ionization stage as roman numerals */ 51 51 elementnames.chIonRoman[LIMELM+3][7]; 52 53 iso sequence names in iso.chISO 52 54 53 55 these are saved in zerologic.c -
branches/c08_branch/source/init_coreload.cpp
r1891 r1916 228 228 iso.n_HighestResolved_max[ipHE_LIKE][ipZINC] = 5; 229 229 230 iso.chISO[ipH_LIKE] = "H-like "; 231 iso.chISO[ipHE_LIKE] = "He-like"; 232 230 233 max_num_levels = 0; 231 234 for( long ipISO = ipH_LIKE; ipISO < NISO; ipISO++ ) -
branches/c08_branch/source/init_sim_postparse.cpp
r1776 r1916 5 5 #include "cddefines.h" 6 6 #include "dense.h" 7 #include "elementnames.h" 7 8 #include "physconst.h" 8 9 #include "mole.h" … … 78 79 } 79 80 81 if( iso.lgPrintNumberOfLevels ) 82 { 83 fprintf(ioQQQ,"\n\n Number of levels in ions treated by iso sequences.\n"); 84 fprintf(ioQQQ," ISO Element hi-n(l-resolved) #(l-resolved) n(collapsed)\n"); 85 /* option to print number of levels for each element */ 86 for( long ipISO=ipH_LIKE; ipISO<NISO; ++ipISO ) 87 { 88 for( long nelem=ipISO; nelem<LIMELM; ++nelem ) 89 { 90 /* print number of levels */ 91 fprintf(ioQQQ," %s %s %4li %4li %4li \n", 92 iso.chISO[ipISO] , 93 elementnames.chElementSym[nelem], 94 iso.n_HighestResolved_max[ipISO][nelem], 95 iso.numLevels_max[ipISO][nelem]-iso.nCollapsed_max[ipISO][nelem], 96 iso.nCollapsed_max[ipISO][nelem]); 97 } 98 } 99 } 100 80 101 return; 81 102 } -
branches/c08_branch/source/iso.h
r1857 r1916 174 174 EXTERN struct t_iso 175 175 { 176 bool lgPrintNumberOfLevels; 177 176 178 const char *chISO[NISO]; 177 179 -
branches/c08_branch/source/iso_create.cpp
r1912 r1916 568 568 569 569 DEBUG_ENTRY( "iso_allocate()" ); 570 571 iso.chISO[ipH_LIKE] = "h-like ";572 iso.chISO[ipHE_LIKE] = "he-like";573 570 574 571 iso.strkar.reserve( NISO ); -
branches/c08_branch/source/iso_level.cpp
r1868 r1916 44 44 45 45 int32 nerror; 46 double HighestPColOut [2] = {0.,0.},46 double HighestPColOut = 0., 47 47 collider, 48 48 sum_popn_ov_ion, … … 223 223 else 224 224 { 225 long SpinUsed[NISO] = {2,1}; 226 long indexNmaxP = 227 iso.QuantumNumbers2Index[ipISO][nelem][ iso.n_HighestResolved_local[ipISO][nelem] ][1][SpinUsed[ipISO]]; 228 225 229 strcpy( iso.chTypeAtomUsed[ipISO][nelem], "Popul" ); 226 230 if( trace.lgTrace && (nelem == trace.ipIsoTrace[ipISO]) ) … … 280 284 281 285 z[level][level] += RadDecay + pump_down + coll_down; 282 z[level][ipLo] = - (RadDecay + pump_down + coll_down); 283 284 if( ipISO == ipHE_LIKE ) 285 { 286 if ( nelem == ipHELIUM ) 287 { 288 if( StElm[level].l == 1 && 289 StElm[level].n == iso.n_HighestResolved_local[ipISO][nelem] ) 290 { 291 if( StElm[level].S == 1 ) 292 { 293 ASSERT( (int)(StElm[level].S >> 1) == 0 ); 294 } 295 else if( StElm[level].S == 3 ) 296 { 297 ASSERT( (int)(StElm[level].S >> 1) == 1 ); 298 } 299 300 HighestPColOut[StElm[level].S >> 1] += coll_down; 301 } 302 303 if( StElm[ipLo].l == 1 && 304 StElm[ipLo].n == iso.n_HighestResolved_local[ipISO][nelem] ) 305 { 306 if( StElm[ipLo].S == 1 ) 307 { 308 ASSERT( (int)(StElm[ipLo].S >> 1) == 0 ); 309 } 310 else if( StElm[ipLo].S == 3 ) 311 { 312 ASSERT( (int)(StElm[ipLo].S >> 1) == 1 ); 313 } 314 315 HighestPColOut[StElm[ipLo].S >> 1] += coll_up; 316 } 317 } 318 319 /* find total collisions out of 2^3S to singlets. */ 320 if( (level == 1) && (ipLo==0) ) 321 { 322 iso.qTot2S[ipISO][nelem] += coll_down/dense.EdenHCorr; 323 } 324 if( (ipLo == 1) && (ipISO==ipH_LIKE || (StElm[level].S==1)) ) 325 { 326 iso.qTot2S[ipISO][nelem] += coll_up/dense.EdenHCorr; 327 } 286 z[level][ipLo] = - (RadDecay + pump_down + coll_down); 287 288 if( level == indexNmaxP ) 289 { 290 HighestPColOut += coll_down; 291 } 292 if( ipLo == indexNmaxP ) 293 { 294 HighestPColOut += coll_up; 328 295 } 296 297 /* find total collisions out of 2^3S to singlets. */ 298 if( (level == 1) && (ipLo==0) ) 299 { 300 iso.qTot2S[ipISO][nelem] += coll_down/dense.EdenHCorr; 301 } 302 if( (ipLo == 1) && (ipISO==ipH_LIKE || (StElm[level].S==1)) ) 303 { 304 iso.qTot2S[ipISO][nelem] += coll_up/dense.EdenHCorr; 305 } 306 } 307 } 308 309 if( ipISO == nelem ) 310 { 311 /* iso.lgCritDensLMix[ipISO] is a flag used to print warning if density is 312 * too low for first collapsed level to be l-mixed. Check is if l-mixing collisions 313 * out of highest resolved singlet P are greater than sum of transition probs out. */ 314 if( HighestPColOut < 1./StatesElem[ipISO][nelem][indexNmaxP].lifetime ) 315 { 316 iso.lgCritDensLMix[ipISO] = false; 329 317 } 330 318 } … … 657 645 if( ipISO == ipHE_LIKE ) 658 646 { 659 /* iso.lgCritDensLMix[ipISO] is a flag used to print warning if density is660 * too low for first collapsed level to be l-mixed. Check is if l-mixing collisions661 * out of highest resolved singlet P are greater than sum of transition probs out. */662 if( ( (HighestPColOut[0] < 1./StatesElem[ipISO][ipHELIUM][iso.QuantumNumbers2Index[ipISO][ipHELIUM][iso.n_HighestResolved_max[ipISO][ipHELIUM]][1][1]].lifetime )663 || (HighestPColOut[1] < 1./StatesElem[ipISO][ipHELIUM][iso.QuantumNumbers2Index[ipISO][ipHELIUM][iso.n_HighestResolved_max[ipISO][ipHELIUM]][1][3]].lifetime ) )664 && nelem==ipHELIUM )665 {666 iso.lgCritDensLMix[ipISO] = false;667 }668 647 669 648 if( nzone>0 && nelem==ipHELIUM ) -
branches/c08_branch/source/parse_atom_iso.cpp
r1790 r1916 154 154 * allocated for the hydrogen and helium lines. Once done we must ignore all 155 155 * future changes in the number of levels */ 156 if( !lgHydroMalloc ) 156 if( nMatch("PRIN",chCard) ) 157 { 158 /* only print - do not change levels */ 159 iso.lgPrintNumberOfLevels = true; 160 } 161 else if( !lgHydroMalloc ) 157 162 { 158 163 i = 5; -
branches/c08_branch/source/parse_table.cpp
r1815 r1916 878 878 879 879 lgLines_Malloc = true; 880 /* this flag says we didnot find a continuum source - nearly all table XXX880 /* this flag says this is not find a continuum source - nearly all table XXX 881 881 * commands deal with continuum sources */ 882 882 ncont = -10; 883 883 884 884 /* actually get the lines, and malloc the space in the arrays */ 885 nLINE_TABLE = cdGetLineList( chLINE_LIST , &chLabel , &wl); 885 if( (nLINE_TABLE = cdGetLineList( chLINE_LIST , &chLabel , &wl) )<0 ) 886 { 887 /* did not find file, abort */ 888 fprintf(ioQQQ,"\n DISASTER PROBLEM ParseTable could not find " 889 "line list file %s\n", chLINE_LIST ); 890 fprintf(ioQQQ," Please check the spelling of the file name and that it " 891 "is in either the local or data directory.\n\n"); 892 cdEXIT(EXIT_FAILURE); 893 } 886 894 } 887 895 -
branches/c08_branch/source/prt_alltau.cpp
r1732 r1916 116 116 PrintE93( ioQQQ , opac.TauTotalGeo[0][iso.ipIsoLevNIonCon[ipH_LIKE][1][ipH1s]-1]/fcon); 117 117 fprintf( ioQQQ, "\n"); 118 119 if( dense.lgElmtOn[ipHELIUM] )120 {121 /* print optical depths of previous iteration with old atom */122 123 /* these results are for new HeI as part of he iso sequence */124 fprintf( ioQQQ, " Line Optical Depths: 10830:");125 fprintf( ioQQQ,PrintEfmt("%9.2e", (Transitions[ipHE_LIKE][ipHELIUM][ipHe2p3P0][ipHe2s3S].Emis->TauIn+126 Transitions[ipHE_LIKE][ipHELIUM][ipHe2p3P1][ipHe2s3S].Emis->TauIn+127 Transitions[ipHE_LIKE][ipHELIUM][ipHe2p3P2][ipHe2s3S].Emis->TauIn)/flin));128 fprintf( ioQQQ, " 3889:");129 fprintf( ioQQQ,PrintEfmt("%9.2e", Transitions[ipHE_LIKE][ipHELIUM][ipHe3p3P][ipHe2s3S].Emis->TauIn/flin));130 fprintf( ioQQQ, " 5876:");131 fprintf( ioQQQ,PrintEfmt("%9.2e", (Transitions[ipHE_LIKE][ipHELIUM][ipHe3d3D][ipHe2p3P0].Emis->TauIn+132 Transitions[ipHE_LIKE][ipHELIUM][ipHe3d3D][ipHe2p3P1].Emis->TauIn+133 Transitions[ipHE_LIKE][ipHELIUM][ipHe3d3D][ipHe2p3P2].Emis->TauIn)/flin));134 fprintf( ioQQQ, " 7065:");135 fprintf( ioQQQ,PrintEfmt("%9.2e", (Transitions[ipHE_LIKE][ipHELIUM][ipHe3s3S][ipHe2p3P0].Emis->TauIn+136 Transitions[ipHE_LIKE][ipHELIUM][ipHe3s3S][ipHe2p3P1].Emis->TauIn+137 Transitions[ipHE_LIKE][ipHELIUM][ipHe3s3S][ipHe2p3P2].Emis->TauIn)/flin));138 fprintf( ioQQQ, " 2.06m:");139 &nbs
