Ignore:
Timestamp:
09/05/01 19:09:29 (23 years ago)
Author:
blanch
Message:
The kibrary stdlib has been included to use 'atof'
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Simulation/Detector/ReflectorII/atm.c

    r725 r923  
    2828
    2929    Log(ATM__SET___LOG, AtmModelNames[atmModel]);
     30
     31    /*  'erfc' must be inited, so keep the following line.  */
     32    Debug("Initing 'erfc': ret=%g\n", erfc(M_PI));
    3033}   /*  end of SetAtmModel  */
    3134           
     
    5154
    5255int absorption(float wlen, float height, float theta)
    53 {   int   ret = 0;      /*  0: passed, 1: absorbed  */
    54  
    55     if ( RandomNumber > atm(wlen, height, theta)) return 1;
     56{   int ret = 0;        /*  0: passed, 1: absorbed  */
     57  
     58    if (RandomNumber > atm(wlen, height, theta)) ret=1;
    5659
    5760    return ret;
Note: See TracChangeset for help on using the changeset viewer.