Ignore:
Timestamp:
Feb 23, 2011 10:26:15 AM (12 years ago)
Author:
srkline
Message:

added point ranges to maxDistance functions to allow threading by breaking up the outer for loop.

File:
1 edited

Legend:

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

    r790 r793  
    172172        int i,j; 
    173173    int npt; 
    174          
    175          
     174        int p1,p2; 
    176175         
    177176        // check for all of the required waves 
     
    209208        zv = WaveData(p->zwavH); 
    210209         
     210        p1 = (int) p->p1; 
     211        p2 = (int) p->p2; 
     212         
    211213        dmax = 0; 
    212214        //do the i!=j double loop, keeping the maximum distance 
    213215 
    214         for(i=0;i<npt;i+=1) { 
     216        for(i=p1;i<p2;i+=1) { 
    215217                for(j=(i+1);j<npt;j+=1) { 
    216218//                      dij=XYZDistance(xv[i],xv[j],yv[i],yv[j],zv[i],zv[j]); 
Note: See TracChangeset for help on using the changeset viewer.