Changeset 5abbad7 in sasmodels


Ignore:
Timestamp:
Oct 14, 2016 6:03:06 AM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
ec9d329
Parents:
11ca2ab
Message:

use sasview 3.1 formula for 2d fcc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/fcc_paracrystal.c

    r11ca2ab r5abbad7  
    9393    ORIENT_ASYMMETRIC(qx, qy, theta, phi, psi, q, cos_a3, cos_a2, cos_a1); 
    9494 
    95     const double a1 = +cos_a3 + cos_a2; 
    96     const double a2 = +cos_a3 + cos_a1; 
    97     const double a3 = -cos_a3 + cos_a2; 
     95    const double a1 = cos_a2 + cos_a3; 
     96    const double a2 = cos_a3 + cos_a1; 
     97    const double a3 = cos_a2 + cos_a1; 
    9898    const double qd = 0.5*q*dnn; 
    9999    const double exp_qd = exp(0.5*square(qd*d_factor)*(a1*a1 + a2*a2 + a3*a3)); 
Note: See TracChangeset for help on using the changeset viewer.