Changes in sasmodels/models/parallelepiped.c [d605080:2a0b2b1] in sasmodels
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/parallelepiped.c
rd605080 r2a0b2b1 20 20 { 21 21 const double mu = 0.5 * q * length_b; 22 22 23 23 // Scale sides by B 24 24 const double a_scaled = length_a / length_b; 25 25 const double c_scaled = length_c / length_b; 26 26 27 27 // outer integral (with gauss points), integration limits = 0, 1 28 28 double outer_total = 0; //initialize integral … … 69 69 double q, xhat, yhat, zhat; 70 70 ORIENT_ASYMMETRIC(qx, qy, theta, phi, psi, q, xhat, yhat, zhat); 71 const double qa = q*xhat; 72 const double qb = q*yhat; 73 const double qc = q*zhat; 71 74 72 const double siA = sas_sinx_x(0.5*length_a*q *xhat);73 const double siB = sas_sinx_x(0.5*length_b*q *yhat);74 const double siC = sas_sinx_x(0.5*length_c*q *zhat);75 const double siA = sas_sinx_x(0.5*length_a*qa); 76 const double siB = sas_sinx_x(0.5*length_b*qb); 77 const double siC = sas_sinx_x(0.5*length_c*qc); 75 78 const double V = form_volume(length_a, length_b, length_c); 76 79 const double drho = (sld - solvent_sld);
Note: See TracChangeset
for help on using the changeset viewer.