Show
Ignore:
Timestamp:
05/12/08 03:16:01 (8 months ago)
Author:
gary
Message:

rt_diffuse.cpp - BUGFIX - in case where extremely large increase in ionization threshold continuum index for ionization edge could extend beyond the number of cells

ion_trim.cpp - when the density falls to VERY low values, too low to compute on 32 bit cpu, error message is printed and code aborts. Improve information in error message.

service.cpp - fix misspelled words, one use in output

init_coreload.cpp - trivial changes in line skips

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/source/rt_diffuse.cpp

    r1822 r2045  
    384384 
    385385                                ip = Heavy.ipHeavy[nelem][ion]-1; 
     386                                ASSERT( ip >= 0 ); 
    386387 
    387388                                /* nflux was reset upward in ConvInitSolution to encompass all 
    388389                                 * possible line and continuum emission.  this test should not 
    389                                  * possibly fail.  It could if the ionization were to increase with depth. 
    390                                  * This is important because the nflux cell in ConInterOut is used to carry out the 
    391                                  * unit integration, and if it gets clobbered by diffuse emission the code 
    392                                  * will declare insanity in PrtComment */ 
    393                                 ASSERT( ip >= 0 && ip < rfield.nflux ); 
     390                                 * possibly fail.  It could if the ionization were to increase with depth 
     391                                 * although the continuum mesh is designed to deal with this. 
     392                                 * This test is important because the nflux cell in ConInterOut  
     393                                 * is used to carry out the unit integration, and if it gets  
     394                                 * clobbered by diffuse emission the code will declare  
     395                                 * insanity in PrtComment */ 
     396                                if( ip >= rfield.nflux ) 
     397                                        continue; 
    394398 
    395399                                /* get shell number, stat weights for this species */