Changeset 84e89cd in sasmodels


Ignore:
Timestamp:
May 29, 2018 12:20:06 PM (5 months ago)
Author:
Adam Washington <adam.washington@…>
Branches:
master, F1F2models_grethe, beta_approx, cuda-test, py3, ticket-1074-gammainc, ticket-1084, ticket-1102-pinhole, ticket-1142-plugin-reload, ticket-1155BE_PolyElectrolyte, ticket-1157, ticket-608-user-defined-weights, ticket_1156
Children:
7c35fda
Parents:
33969b6
Message:

Fix spin weighting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kernel_iq.c

    rdc6f601 r84e89cd  
    8686  //     w*I(q, rho1, rho2, ...) = I(q, sqrt(w)*rho1, sqrt(w)*rho2, ...) 
    8787  // which is likely to be the case for simple models. 
    88   weight[0] = sqrt((1.0-in_spin) * (1.0-out_spin)); // dd 
    89   weight[1] = sqrt((1.0-in_spin) * out_spin);       // du.real 
    90   weight[2] = sqrt(in_spin * (1.0-out_spin));       // ud.real 
    91   weight[3] = sqrt(in_spin * out_spin);             // uu 
     88  weight[0] = (1.0-in_spin) * (1.0-out_spin); // dd 
     89  weight[1] = (1.0-in_spin) * out_spin;       // du 
     90  weight[2] = in_spin * (1.0-out_spin);       // ud 
     91  weight[3] = in_spin * out_spin;             // uu 
    9292  weight[4] = weight[1]; // du.imag 
    9393  weight[5] = weight[2]; // ud.imag 
Note: See TracChangeset for help on using the changeset viewer.