66 fprintf( io,
" Cloudy punts, Te=%10.3e HTOT=%10.3e CTOT=%10.3e nzone=%4ld\n",
68 fprintf( io,
" COOLNG array is\n" );
72 coolpr(io,
"ZERO",1,0.,
"ZERO");
83 coolpr(io,
"DONE",1,0.,
"DONE");
84 fprintf( io,
" Line heating array follows\n" );
85 coolpr(io,
"ZERO",1,0.,
"ZERO");
97 coolpr(io,
"DONE",1,0.,
"DONE");
104 fprintf( io,
" map of heating, cooling, vs temp, follows.\n");
106 " Te Heat--------------------> Cool---------------------> dH/dT dC/DT Ne NH HII Helium \n" );
109 if( strcmp(chType,
"punt") == 0 )
124 else if( strcmp(chType,
" map") == 0 )
145 TeNew = (tlowst/factor);
153 fprintf(
ioQQQ,
" PUNT called with insane argument,=%4.4s\n",
168 printf(
" not enough memory to allocate hcmap.temap in map_do\n" );
174 printf(
" not enough memory to allocate hcmap.cmap in map_do\n" );
180 printf(
" not enough memory to allocate hcmap.hmap in map_do\n" );
190 fprintf(
ioQQQ,
" MAP called temp range %.4e %.4e in %li stops ===============================================\n",
227 fprintf(
ioQQQ,
" MAP new temp %.4e ===============================================\n",
262 for( k=0; k <
LIMELM; k++ )
264 for( j=0; j <
LIMELM; j++ )
280 fprintf( io,
" ----------------------------------------------- Probable thermal solution here. --------------------------------------------\n" );
301 fprintf( io,
"TRACE: te, htot, ctot%11.3e%11.3e%11.3e\n",
309 fprintf(io,
" [%2ld][%2ld]%6.3f",
313 fprintf(io,
" %s %.1f%c%6.3f",
324 fprintf(io,
"%6.2f%6.2f%6.2f%6.2f\n",
338 enum {DEBUG_LOC=
false};
341 static int kount = 0;
347 fprintf(
ioQQQ,
" exiting in map_do\n");
364 if( s1*s3 > 0. && s2*s3 < 0. )
373 " cooling curve had double inflection at T=%.2e. ",
375 fprintf( io,
" Slopes were %.2e %.2e %.2e", s1, s2, s3);
379 " error large, (rel slope of %.2e).\n",
386 " error is small, (rel slope of %.2e).\n",
394 if( s1*s3 > 0. && s2*s3 < 0. )
402 " heating curve had double inflection at T=%.2e.\n",
#define DEBUG_ENTRY(funcname)
void coolpr(FILE *io, const char *chLabel, realnum lambda, double ratio, const char *chJOB)
void map_do(FILE *io, const char *chType)
void PresTotCurrent(void)
long int IonLow[LIMELM+1]
long int IonHigh[LIMELM+1]
double xIonDense[LIMELM][LIMELM+1]
realnum gas_phase[LIMELM]
const double TEMP_LIMIT_HIGH
const double TEMP_LIMIT_LOW
double heating[LIMELM][LIMELM]
char chClntLab[NCOLNT][NCOLNT_LAB_LEN+1]
void TempChange(double TempNew, bool lgForceUpdate)