Changeset c072f83 in sasmodels for sasmodels/generate.py


Ignore:
Timestamp:
Mar 21, 2016 12:28:32 PM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
3a45c2c
Parents:
0a7e5eb4
Message:

revised opencl calculator, first pass

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/generate.py

    ra6f9577 rc072f83  
    669669    c = p + 3*npars 
    670670 
    671     details = np.zeros(c + 3, 'int32') 
     671    details = np.zeros(c + 2, 'int32') 
    672672    details[0*max_pd:1*max_pd] = range(max_pd)       # pd_par: arbitrary order; use first 
    673673    details[1*max_pd:2*max_pd] = [1]*max_pd          # pd_length: only one element 
     
    702702        theta_par = -1 
    703703 
    704     details = np.empty(constants_offset + 3, 'int32') 
     704    details = np.empty(constants_offset + 2, 'int32') 
    705705    details[0*max_pd:1*max_pd] = idx             # pd_par 
    706706    details[1*max_pd:2*max_pd] = pd_length[idx] 
Note: See TracChangeset for help on using the changeset viewer.