Changeset a42fec0 in sasmodels for Kernel/Kernel-CapCyl.cpp


Ignore:
Timestamp:
Aug 4, 2014 5:20:07 PM (10 years ago)
Author:
HMP1 <helen.park@…>
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:
8cdb9f1
Parents:
099e053
Message:

Speed-up of 3X, compare.py working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Kernel/Kernel-CapCyl.cpp

    r099e053 ra42fec0  
    4242        answer/=sin(alpha); 
    4343 
    44         _ptvalue[i] = rad_cyl_weight*length_weight*rad_cap_weight*theta_weight*phi_weight*vol_i*answer; 
     44        _ptvalue[i] += rad_cyl_weight*length_weight*rad_cap_weight*theta_weight*phi_weight*vol_i*answer; 
    4545     //   if (size>1) { 
    4646   //         _ptvalue[i] *= fabs(cos(thet*pi/180.0)); 
Note: See TracChangeset for help on using the changeset viewer.