Changeset 1906
- Timestamp:
- 04/01/08 09:29:16 (9 months ago)
- Location:
- trunk/source
- Files:
-
- 10 modified
-
atmdat_chianti.cpp (modified) (1 diff)
-
atmdat_lamda.cpp (modified) (4 diffs)
-
cddefines.h (modified) (1 diff)
-
cont_createpointers.cpp (modified) (1 diff)
-
nemala.txt (modified) (1 diff)
-
prt_lines_continuum.cpp (modified) (1 diff)
-
punch_do.cpp (modified) (1 diff)
-
punch_line.cpp (modified) (1 diff)
-
rt_escprob.cpp (modified) (1 diff)
-
rt_tau_inc.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/atmdat_chianti.cpp
r1815 r1906 263 263 strncpy(atmolStates[intNS][j].chLabel,Species[intNS].chptrSpName, 4); 264 264 atmolStates[intNS][j].chLabel[4] = '\0'; 265 266 /*Index for keep track of species index*/ 267 atmolStates[intNS][j].AtmolIndex = intNS; 265 268 266 269 fstatwt = (realnum)atof(&chLine[SWS]); -
trunk/source/atmdat_lamda.cpp
r1815 r1906 52 52 ipLo = 0; 53 53 j = 0; 54 while(intlnct < 5)54 while(intlnct < 3) 55 55 { 56 56 intlnct++; … … 61 61 } 62 62 } 63 63 /*Extracting out the molecular weight*/ 64 if(read_whole_line( chLine , (int)sizeof(chLine) , atmolLevDATA ) == NULL ) 65 { 66 fprintf( ioQQQ, " The data file %s is corrupted .\n",chEFilename); 67 cdEXIT(EXIT_FAILURE); 68 } 69 Species[intNS].fmolweight = (realnum)atof(chLine); 70 71 /*Discard this line*/ 72 if(read_whole_line( chLine , (int)sizeof(chLine) , atmolLevDATA ) == NULL ) 73 { 74 fprintf( ioQQQ, " The data file %s is corrupted .\n",chEFilename); 75 cdEXIT(EXIT_FAILURE); 76 } 77 /*Reading in the number of energy levels*/ 64 78 if(read_whole_line( chLine , (int)sizeof(chLine) , atmolLevDATA ) == NULL ) 65 79 { … … 127 141 strncpy(atmolStates[intNS][nMolLevs].chLabel,Species[intNS].chptrSpName, 4); 128 142 atmolStates[intNS][nMolLevs].chLabel[4] = '\0'; 143 /*Keeping track of species index*/ 144 atmolStates[intNS][nMolLevs].AtmolIndex = intNS; 129 145 130 146 long i = 1; … … 224 240 /* don't need the energy in GHz, so throw it away. */ 225 241 FFmtRead( chLine, &i, sizeof(chLine), &lgEOL ); 226 fenergyK = (realnum)FFmtRead( chLine, &i, sizeof(chLine), &lgEOL ); 227 242 fenergyK = (realnum)(((atmolStates[intNS][ipHi].energy) -(atmolStates[intNS][ipLo].energy))*T1CM); 228 243 ASSERT( index == intrtct + 1 ); 229 244 -
trunk/source/cddefines.h
r1899 r1906 1282 1282 char chConfig[11]; 1283 1283 1284 /*Index to identify the quantum state with the species index*/ 1285 int AtmolIndex; 1286 1284 1287 species *sp; 1285 1288 -
trunk/source/cont_createpointers.cpp
r1815 r1906 604 604 atmolEmis[i].gf = (realnum)GetGF(atmolEmis[i].Aul, 605 605 atmolEmis[i].tran->EnergyWN,atmolEmis[i].tran->Hi->g); 606 realnum fdampXvel = (realnum)(atmolEmis[i].Aul/606 atmolEmis[i].dampXvel = (realnum)(atmolEmis[i].Aul/ 607 607 atmolEmis[i].tran->EnergyWN/PI4); 608 atmolEmis[i].damp = fdampXvel/(realnum)atmolEmis[i].tran->Hi->lifetime ; 608 atmolEmis[i].damp = -1000.0; 609 //atmolEmis[i].damp = fdampXvel/(realnum)atmolEmis[i].tran->Hi->lifetime ; 609 610 /*Put null terminated line label into chLab*/ 610 611 strncpy(chLab,atmolEmis[i].tran->Hi->chLabel,4); -
trunk/source/nemala.txt
r1837 r1906 1 to use the Chianti and Leiden data base files uncomment Nemala_Start at atmdat_readion.cpp near line 1433 1 to use the Chianti and Leiden data base files uncomment Nemala_Start at 2 atmdat_readin.cpp near line 1433 -
trunk/source/prt_lines_continuum.cpp
r1732 r1906 304 304 /* div by opac.E2TauAbsFace[i] because ConEmitReflec has already 305 305 * been corrected for this - emergent_line will introduce a 306 * further correction so this will canc il the extra factor */306 * further correction so this will cancel the extra factor */ 307 307 double xIntenIn = 308 308 ((double)rfield.ConEmitReflec[i-1]/SDIV((double)opac.E2TauAbsFace[i-1]) + -
trunk/source/punch_do.cpp
r1889 r1906 2138 2138 else if( strcmp(punch.chPunch[ipPun],"LINS") == 0 ) 2139 2139 { 2140 /* punch line structure*/2140 /* punch line emissivity */ 2141 2141 if( strcmp(chTime,"LAST") != 0 ) 2142 2142 { -
trunk/source/punch_line.cpp
r1771 r1906 144 144 else if( strcmp(chDo,"PUNS") == 0 ) 145 145 { 146 /* punch lines structurecommand */146 /* punch lines emissivity command */ 147 147 static bool lgMustGetLines=true, 148 148 lgBadLine=false; -
trunk/source/rt_escprob.cpp
r1771 r1906 48 48 49 49 DEBUG_ENTRY( "esc_PRD_1side()" ); 50 50 ASSERT( a>0.0 ); 51 51 52 52 /* this is one of the three fundamental escape probability routines -
trunk/source/rt_tau_inc.cpp
r1822 r1906 194 194 H2_RT_tau_inc(); 195 195 196 /*Atomic & Molecular Lines*/ 197 for(i=0; i < linesAdded2; i++) 198 { 199 RT_line_one_tauinc(atmolEmis[i].tran, 200 -10 , -10 , -10 , i ); 201 } 196 202 /* following is for static atmosphere */ 197 203 if( wind.windv == 0. )
