Changeset 736 for sans/XOP_Dev


Ignore:
Timestamp:
Sep 14, 2010 11:12:12 AM (12 years ago)
Author:
srkline
Message:

bug fix for #297, correcting the upper limit of the SQ sum.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/XOP_Dev/SANSAnalysis/lib/libCylinder.c

    r634 r736  
    976976        ii=0; 
    977977        Sq = 0.0; 
    978         for(ii=1;ii<(NNint-1);ii+=1) { 
     978        for(ii=1;ii<=(NNint-1);ii+=1) { 
    979979         
    980980                fii = (double)ii;               //do I really need to do this? 
     
    10481048        ii=0; 
    10491049        Sq = 0.0; 
    1050         for(ii=1;ii<(NNint-1);ii+=1) { 
     1050        for(ii=1;ii<=(NNint-1);ii+=1) { 
    10511051         
    10521052                fii = (double)ii;               //do I really need to do this? 
     
    10871087        double Pi; 
    10881088         
    1089          
     1089 
    10901090        Pi = 4.0*atan(1.0); 
    10911091        qval= q; 
Note: See TracChangeset for help on using the changeset viewer.