Ignore:
Timestamp:
Apr 10, 2008 11:45:19 AM (14 years ago)
Author:
ajj
Message:

Adding option to force use of Trapezoidal integration in USANS smearing for debug purposes.

Setting global variable root:NIST:Packages:USANSUseTrap = 1 will turn on the trapezoidal routine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v4.00/GaussUtils_v40.ipf

    r285 r305  
    737737        Wave answer // ywave for calculation result 
    738738        Wave resW               // Nx4 or NxN matrix of resolution 
     739        NVAR useTrap = root:Packages:NIST:USANSUseTrap 
    739740 
    740741        String weightStr,zStr 
    741742        Variable nord=5 
    742743         
    743         if (dimsize(resW,1) > 4) 
     744        if (dimsize(resW,1) > 4 && useTrap !=1) 
    744745                //USANS Weighting matrix is present. 
    745746                fcn(w,answer,x) 
     
    832833        Wave answer // ywave for calculation result 
    833834        Wave resW               // Nx4 or NxN matrix of resolution 
     835        NVAR useTrap = root:Packages:NIST:USANSUseTrap 
    834836 
    835837        String weightStr,zStr 
    836838        Variable nord=20 
    837839         
    838         if (dimsize(resW,1) > 4) 
     840        if (dimsize(resW,1) > 4 && useTrap != 1) 
    839841                //USANS Weighting matrix is present. 
    840842                fcn(w,answer,x) 
     
    874876        Wave answer // ywave for calculation result 
    875877        Wave resW               // Nx4 or NxN matrix of resolution 
     878        NVAR useTrap = root:Packages:NIST:USANSUseTrap 
    876879 
    877880        String weightStr,zStr 
    878881        Variable nord=76 
    879882         
    880         if (dimsize(resW,1) > 4) 
     883        if (dimsize(resW,1) > 4  && useTrap != 1) 
    881884                //USANS Weighting matrix is present. 
    882885                fcn(w,answer,x) 
Note: See TracChangeset for help on using the changeset viewer.