Changeset 793
- Timestamp:
- Feb 23, 2011 10:26:15 AM (11 years ago)
- Location:
- sans/XOP_Dev/MonteCarlo
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/XOP_Dev/MonteCarlo/DebyeSpheres.c
r790 r793 172 172 int i,j; 173 173 int npt; 174 175 174 int p1,p2; 176 175 177 176 // check for all of the required waves … … 209 208 zv = WaveData(p->zwavH); 210 209 210 p1 = (int) p->p1; 211 p2 = (int) p->p2; 212 211 213 dmax = 0; 212 214 //do the i!=j double loop, keeping the maximum distance 213 215 214 for(i= 0;i<npt;i+=1) {216 for(i=p1;i<p2;i+=1) { 215 217 for(j=(i+1);j<npt;j+=1) { 216 218 // dij=XYZDistance(xv[i],xv[j],yv[i],yv[j],zv[i],zv[j]); -
sans/XOP_Dev/MonteCarlo/DebyeSpheres.h
r791 r793 30 30 // result is the last parameter, always. 31 31 typedef struct DistParam { 32 double p2; 33 double p1; // start and stop of the outer index 32 34 waveHndl zwavH; // z coordinate. ALL are expected to be DP waves 33 35 waveHndl ywavH; // y coordinate. -
sans/XOP_Dev/MonteCarlo/MonteCarlo.r
r791 r793 112 112 NT_FP64 + WAVE_TYPE, 113 113 NT_FP64 + WAVE_TYPE, 114 NT_FP64, // start index 115 NT_FP64, // stop index 114 116 }, 115 117
Note: See TracChangeset
for help on using the changeset viewer.