Changeset aadec17 in sasmodels
- Timestamp:
- Feb 7, 2018 3:49:25 PM (7 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- a09d55d
- Parents:
- e526a9d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/kernel_iq.c
r924a119 raadec17 93 93 // Compute the magnetic sld 94 94 static double mag_sld( 95 const int xs, // 0=dd, 1=du real, 2=ud real, 3=uu, 4=du imag, 5=up imag95 const unsigned int xs, // 0=dd, 1=du real, 2=ud real, 3=uu, 4=du imag, 5=up imag 96 96 const double qx, const double qy, 97 97 const double px, const double py, … … 103 103 const double perp = qy*mx - qx*my; 104 104 switch (xs) { 105 default: // keep compiler happy; condition ensures xs in [0,1,2,3] 105 106 case 0: // uu => sld - D M_perpx 106 107 return sld - px*perp; … … 659 660 660 661 // loop over uu, ud real, du real, dd, ud imag, du imag 661 for ( int xs=0; xs<6; xs++) {662 for (unsigned int xs=0; xs<6; xs++) { 662 663 const double xs_weight = spins[xs]; 663 664 if (xs_weight > 1.e-8) {
Note: See TracChangeset
for help on using the changeset viewer.