37         size_t sizeof_sanity =
sizeof( sanity );
 
   48                 if( (n=fread( pnt , 1 , sizeof_pnt , 
ioSTATE )) - sizeof_pnt )
 
   50                         fprintf( 
ioQQQ, 
" state_do failed reading state file, wanted %lu got %lu\n",
 
   51                                 (
unsigned long)sizeof_pnt ,
 
   56                 if( (n=fread( &chk_sanity , 1 , sizeof_sanity , 
ioSTATE )) - sizeof_sanity )
 
   58                         fprintf( 
ioQQQ, 
" state_do failed reading sanity par of state file, wanted %lu got %lu\n",
 
   59                                 (
unsigned long)sizeof_sanity ,
 
   63                 if( ! 
fp_equal( sanity, chk_sanity ) )
 
   65                         fprintf( 
ioQQQ, 
" state_do sanity fails in state file, wanted %g got %g\n",
 
   74                 fwrite( pnt , 1 , sizeof_pnt , 
ioSTATE );
 
   76                 fwrite( &sanity , 1 , sizeof_sanity , 
ioSTATE );
 
   85         long int ipISO , nelem , ipHi, i;
 
   89         if( (strcmp( chJob , 
"get" ) == 0) )
 
   94         else if( (strcmp( chJob , 
"put" ) == 0) )
 
  110                         sprintf( chIteration , 
"_%li", 
iteration );
 
  111                         strcat( chFilename , chIteration );
 
  119                 fprintf(
ioQQQ,
" Print state quantities, start iso seq \n");
 
  122         fixit(
"Wouldn't actually work, as these classes contain pointers");
 
  131                 for( nelem=ipISO; nelem<
LIMELM; ++nelem )
 
  140                                                 fprintf(
ioQQQ,
" start ISO ipISO= %li, nelem= %li, ipHi %li \n", 
 
  144                                                 for( 
long n=0; n< ipHi; ++n )
 
  147                                                                 ipISO , nelem , ipHi , n , 
 
  148                                                                 iso_sp[ipISO][nelem].trans(ipHi,n).Emis().TauIn() ,
 
  149                                                                 iso_sp[ipISO][nelem].trans(ipHi,n).Emis().TauTot() );
 
  157                                         fprintf(
ioQQQ,
" start Ext ipISO= %li, nelem= %li, got %li \n", 
 
  169                                                         (*tr).Emis().TauIn() ,
 
  170                                                         (*tr).Emis().TauTot() );
 
  178         fixit(
"Broken -- contains pointers...");
 
  257                 fixit(
"Wouldn't have worked -- transition contained pointers...");
 
  297                         for( nelem=ipISO; nelem<
LIMELM; ++nelem)
 
t_mole_global mole_global
FILE * open_data(const char *fname, const char *mode, access_scheme scheme)
TransitionList UTALines("UTALines",&AnonStates)
NORETURN void TotalInsanity(void)
TransitionList HFLines("HFLines",&AnonStates)
TransitionList TauLine2("TauLine2",&AnonStates)
char chPutFilename[INPUT_LINE_LENGTH]
t_iso_sp iso_sp[NISO][LIMELM]
long int nflux_with_check
bool fp_equal(sys_float x, sys_float y, int n=3)
multi_arr< int, 3 > ipExtraLymanLines
const int INPUT_LINE_LENGTH
diatomics h2("h2", 4100.,&hmi.H2_total, Yan_H2_CS)
STATIC void state_do(void *pnt, size_t sizeof_pnt)
vector< vector< TransitionList > > ExtraLymanLines
#define DEBUG_ENTRY(funcname)
void state_get_put(const char chJob[])
int fprintf(const Output &stream, const char *format,...)
char chGetFilename[INPUT_LINE_LENGTH]
long int nLyman_malloc[NISO]
realnum * pres_radiation_lines_curr