Changeset 923 for trunk


Ignore:
Timestamp:
09/05/01 19:09:29 (23 years ago)
Author:
blanch
Message:
The kibrary stdlib has been included to use 'atof'
Location:
trunk/MagicSoft/Simulation/Detector/ReflectorII
Files:
3 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;
  • trunk/MagicSoft/Simulation/Detector/ReflectorII/geometry.c

    r725 r923  
    11#include <stdio.h>
    22#include <string.h>
     3#include <stdlib.h>
    34#include <math.h>
    45#include "diag.h"
     
    6970            fclose(ct_BinaryData);      }
    7071    }   /*  end of if: reading ASCII data  */
    71 
    7272}   /*  end of ReadMirrorTable  */
    7373
  • trunk/MagicSoft/Simulation/Detector/ReflectorII/parms.c

    r725 r923  
    11#include <stdio.h>
    22#include <string.h>
     3#include <stdlib.h>
    34#include <math.h>
    45#include "diag.h"
Note: See TracChangeset for help on using the changeset viewer.