Ignore:
Timestamp:
May 9, 2007 9:07:05 AM (16 years ago)
Author:
ajj
Message:

Fixed test function SmearedCyl_PolyRadiusX() so that it now actually can call the underlying function.

Can now be used for some speed tests - SANS data only.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Analysis/branches/ajj_23APR07/XOPs/SANSAnalysis/XOP/ResolutionSmearing.c

    r106 r111  
    1111#include "GaussWeights.h" 
    1212#include "ResolutionSmearing.h" 
     13#include "libSANSAnalysis.h" 
    1314 
    1415int 
     
    320321        double nord,va,vb,summ,yyy,zi,Pi; 
    321322        double answer,Resoln,i_shad,i_qbar,i_sigq; 
     323        char buf[256]; 
    322324         
    323325        Pi = 4.0*atan(1.0); 
    324          
    325326        i_shad = p->i_shad; 
    326327        i_qbar = p->i_qbar; 
    327328        i_sigq = p->i_sigq; 
    328329         
    329          
    330330        dp = WaveData(p->waveHandle); 
    331331        q = p->x; 
    332  
     332         
     333        p->result = Cyl_PolyRadius(dp,q); 
     334        return 0; 
    333335         
    334336        if (i_sigq >= 0){ 
     
    340342                } 
    341343                vb = 3*i_sigq + i_qbar; 
    342                  
    343344                summ = 0.0; 
    344345                ii=0; 
     
    369370                //answer = qtrap_USANS(fi,pp,va,vb,tol,maxiter); 
    370371                //answer /= vb; 
     372                 
     373                //Just return a value that is clearly nonsense, but is non-zero 
     374                //USANS Smearing code not in form suitable for this test of direct calling 
     375                //of C library function. AJJ May 9 2007 
    371376                answer = -10; 
    372377        } 
    373          
    374          
    375378        p->result = answer; 
    376379         
    377380        return 0; 
    378         } 
     381} 
    379382 
    380383 
Note: See TracChangeset for help on using the changeset viewer.