23 vector<long>ipsave(LIMELM*LIMELM, INT_MIN);
24 vector<long>jpsave(LIMELM*LIMELM, INT_MIN);
25 vector<long>ipOrdered(LIMELM*LIMELM);
26 vector<string> chLabel(LIMELM*LIMELM);
57 for(
long i=0; i <
LIMELM; i++ )
59 for(
long j=0; j <
LIMELM; j++ )
83 fprintf( io,
" Negative coolant was %s %.2f %.2e\n",
90 fprintf( io,
"#>>>> Temperature not converged.\n" );
94 fprintf( io,
"#>>>> Electron density not converged.\n" );
98 fprintf( io,
"#>>>> Ionization not converged.\n" );
102 fprintf( io,
"#>>>> Pressure not converged.\n" );
110 for(
long k=0; k < ipnt; k++ )
121 fprintf(
ioQQQ,
"DISASTER assert about to be thrown - search for hit it\n");
131 else if( i == 0 && j == 1 )
137 else if( i == 0 && j == 3 )
143 else if( i == 0 && j == 7 )
148 else if( i == 0 && j == 8 )
154 else if( i == 0 && j == 17 )
161 else if( i == 0 && j == 9 )
166 else if( i == 0 && j == 20 )
171 else if( i == 0 && j == 21 )
176 else if( i == 0 && j == 11 )
181 else if( i == 0 && j == 12 )
186 else if( i == 0 && j == 13 )
191 else if( i == 0 && j == 14 )
196 else if( i == 0 && j == 15 )
201 else if( i == 0 && j == 16 )
206 else if( i == 0 && j == 18 )
211 else if( i == 0 && j == 19 )
216 else if( i == 0 && j == 22 )
221 else if( i == 0 && j == 23 )
227 else if( i == 0 && j == 24 )
232 else if( i == 1 && j == 3 )
237 else if( i == 1 && j == 5 )
242 else if( i == 1 && j == 6 )
247 else if( i == 25 && j == 27 )
255 oss <<
"[" << i <<
"][" << j <<
"]";
256 chLabel[k] = oss.str();
278 fprintf( io,
"%.5e\t%.4e\t%.4e\t%.4e",
284 for(
long k=0; k < ipnt; k++ )
286 int ip = ipOrdered[k];
289 ASSERT( i<LIMELM && j<LIMELM );
293 chLabel[ip].c_str(), SaveVal[ip] );
299 bool lgHeatLine =
false;
302 for( i=0; i < ipnt; i++ )
305 if( ipsave[ipOrdered[i]] == 0 && jpsave[ipOrdered[i]] == 22 )
324 fprintf( io,
" LHeat lv%2ld %s TIn%10.2e Pmp%9.1e EscP%9.1e CS%9.1e Hlin/tot%10.2e\n",
325 level,
chLineLbl(t).c_str(), TauIn, Pump, EscP, CS, ColHeat );
string chLineLbl(const TransitionProxy &t)
char chIonStage[LIMELM+1][CHARS_ION_STAGE]
t_elementnames elementnames
double xIonDense[LIMELM][LIMELM+1]
char chClntLab[NCOLNT][NCOLNT_LAB_LEN+1]
EmissionList::reference Emis() const
const TransitionProxy FndLineHt(long int *level)
sys_float safe_div(sys_float x, sys_float y, sys_float res_0by0)
double heating(long nelem, long ion)
char chElementSym[LIMELM][CHARS_ELEMENT_SYM]
realnum & col_str() const
CollisionProxy Coll() const
#define DEBUG_ENTRY(funcname)
int fprintf(const Output &stream, const char *format,...)
void spsort(realnum x[], long int n, long int iperm[], int kflag, int *ier)