Ignore:
Timestamp:
Nov 6, 2015 11:19:03 AM (7 years ago)
Author:
srkline
Message:

fixed indexing (bug) in parser that worked fine in Igor 6, but was correctly flagged as an error in Igor 7 beta

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Analysis/Alpha/Tinker/FFT_KR_Parser.ipf

    r953 r968  
    237237                        for(i=-RR;i<RR;i+=1)  //should this have i<RR+1 or in above RR=RR+2???? 
    238238                                for(j=-RR;j<RR;J+=1) 
    239                                         x0=sbp*i+P5 
    240                                         y0=SBP*j+P5 
    241                                         z0=SBP*k+p5 
     239                                        x0=sbp[L]*i+P5 
     240                                        y0=SBP[L]*j+P5 
     241                                        z0=SBP[L]*k+p5 
    242242                                        if((((y0^2)/(RRI[L]^2))+((x0^2)/(RRI[L]^2)))<=1) 
    243243                                                IX=-1 
Note: See TracChangeset for help on using the changeset viewer.