Show
Ignore:
Timestamp:
02/23/08 20:18:25 (9 months ago)
Author:
peter
Message:

source/grains_qheat.cpp:
source/grains.cpp:
source/grainvar.h:

  • Bug-fix: fix failed assert on ia64 due to abrupt underflow to zero.
  • Bug-fix: fix negative yield for secondary electrons when near threshold.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/source/grains_qheat.cpp

    r1771 r1812  
    954954                                double ratio = ( gv.lgWD01 ) ? 1. : gptr->yhat[i]/gptr->yhat_primary[i]; 
    955955                                /* ehat is average energy of ejected electron at infinity */ 
    956                                 double ehat = gptr->eyhat[i]/gptr->yhat[i]; 
     956                                double ehat = gptr->ehat[i]; 
    957957                                double cool1, sign = 1.; 
    958958                                realnum xx;