Show
Ignore:
Timestamp:
06/13/08 11:23:57 (7 months ago)
Author:
peter
Message:

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

Speed up the code for initializing the grain electron yields. No change in functionality.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/source/grainvar.h

    r1813 r2108  
    240240        /** general information on the grains */ 
    241241        char chDstLab[13];      /**< label for the species */ 
     242        double eec;             /**< pow(dustp[0],-0.85), needed for electron esacpe length */ 
     243        double eyc;            /**< 1./AvRadius + 1.e7, needed for electron yield */ 
    242244        realnum dustp[5],       /**< 0 = specific weight (g/cm^3), 1 = mol. weight (amu), 2 = default abundance, 
    243245                                 *   3 = default depletion, 4 = fraction of the mass in this grain bin */