42 " Punch average hit EOF while reading list; use END to end list.\n" );
47 while( p.
strcmp(
"END" ) != 0 )
56 fprintf(
ioQQQ,
" save averages hit EOF while reading species list; use END to end list.\n" );
62 fprintf(
ioQQQ ,
"DEBUG save_average %li species read in.\n",
99 fprintf(
ioQQQ ,
"DEBUG save_average %li species read in.\n",
108 " Punch average hit EOF while reading list; use END to end list.\n" );
116 while( p.
strcmp(
"END" ) != 0 )
125 else if( p.
nMatch(
"COLU" ))
130 else if( p.
nMatch(
"IONI" ))
137 fprintf(
ioQQQ,
"PROBLEM one of the jobs TEMPerature, COLUmn density, or IONIzation, must appear.\n");
146 fprintf(
ioQQQ,
"save average did not an element on this line, sorry %s\n",
157 p.
NoNumb(
"ionization stage" );
177 fprintf(
ioQQQ,
" save averages hit EOF while reading species list; use END to end list.\n" );
186 for( i=0; i<
nLine ; ++i )
188 fprintf(
ioQQQ,
"PDDEBUG %s %s %i %i\n",
197 sprintf(chHeader,
"#averages");
198 for( i=0; i<
nLine ; ++i )
200 sprintf(chTemp,
"\t %s %s %i %i",
205 strcat( chHeader, chTemp );
207 strcat( chHeader,
"\n");
224 strcpy( chWeight ,
"RADIUS");
226 strcpy( chWeight ,
"VOLUME");
237 fprintf(
ioQQQ,
" save average temperature could not identify the species.\n" );
241 result = log10( result );
248 if( strncmp(
"HYDR" ,
261 fprintf(
ioQQQ,
" save average ionization fraction could not identify the species.\n" );
265 result = log10( result );
275 fprintf(
ioQQQ,
" save average column density fraction could not identify the species.\n" );
279 result = log10( result );
const int INPUT_LINE_LENGTH
NORETURN void TotalInsanity(void)
#define DEBUG_ENTRY(funcname)
int cdColm(const char *chLabel, long int ion, double *theocl)
int cdIonFrac(const char *chLabel, long int IonStage, double *fracin, const char *chWeight, bool lgDensity)
int cdTemp(const char *chLabel, long int IonStage, double *TeMean, const char *chWeight)
long int GetElem(void) const
bool nMatch(const char *chKey) const
int strcmp(const char *s2)
NORETURN void NoNumb(const char *chDesc) const
t_elementnames elementnames
void save_average(long int ipPun)
void parse_save_average(Parser &p, long int ipPun, char *chHeader)
char chElementNameShort[LIMELM][CHARS_ELEMENT_NAME_SHORT]
long nAverageList[LIMPUN]
vector< int > nAverageIonList[LIMPUN]
void SaveAverageFree(long i)
vector< int > nAverage2ndPar[LIMPUN]
vector< char * > chAverageSpeciesLabel[LIMPUN]
vector< char * > chAverageType[LIMPUN]