Ignore:
Timestamp:
Oct 26, 2010 3:32:14 PM (12 years ago)
Author:
srkline
Message:

Changes to DebyeSpheres? to convert everything to double, rather than float.

Changes to MonteCarlo? to use a local definition of round(), since it's not a standard function in Visual Studio's math.h. Easier to just write my own and give it an odd name - MC_round()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/XOP_Dev/MonteCarlo/DebyeSpheres.h

    r674 r758  
    1212// result is the last parameter, always. 
    1313typedef struct AltiParams { 
    14     DOUBLE       grid;          // effective c-to-c distance between spheres = 0.62*Rprimary 
    15     DOUBLE   Rprimary;  //primary sphere radius 
     14    double       grid;          // effective c-to-c distance between spheres = 0.62*Rprimary 
     15    double   Rprimary;  //primary sphere radius 
    1616        waveHndl rhowavH;       // rho at xyz!!! 
    1717        waveHndl zwavH; // z coordinate. ALL are expected to be SP waves 
    1818        waveHndl ywavH; // y coordinate. 
    1919        waveHndl xwavH; // x coordinate. 
    20     DOUBLE qval;        // q-value. 
     20    double qval;        // q-value. 
    2121        void* tp;                       //unused void for threadsafe functions 
    22         DOUBLE result; 
     22        double result; 
    2323}AltiParams, *AltiParamsPtr;    
    2424  
    2525  
    26 float PhiQR(float qval, float rval); 
    27 float XYZDistance(float x1, float x2,float y1, float y2,float z1, float z2); 
     26double PhiQR(double qval, double rval); 
     27double XYZDistance(double x1, double x2,double y1, double y2,double z1, double z2); 
    2828int DebyeSpheresX(AltiParamsPtr p); 
Note: See TracChangeset for help on using the changeset viewer.