Changeset c3ccaec in sasmodels for sasmodels/models/core_multi_shell.c
- Timestamp:
- Feb 7, 2017 12:10:50 PM (7 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- a90aa1c
- Parents:
- aa107ef (diff), fe8ff99 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - git-author:
- Paul Kienzle <pkienzle@…> (02/07/17 12:10:50)
- git-committer:
- GitHub <noreply@…> (02/07/17 12:10:50)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/core_multi_shell.c
r21fbab1 rc3ccaec 3 3 f_constant(double q, double r, double sld) 4 4 { 5 const double bes = s ph_j1c(q * r);5 const double bes = sas_3j1x_x(q * r); 6 6 const double vol = M_4PI_3 * cube(r); 7 7 return sld * vol * bes; … … 29 29 f = 0.; 30 30 for (int i=0; i<n; i++) { 31 f += M_4PI_3 * cube(r) * (sld[i] - last_sld) * s ph_j1c(q*r);31 f += M_4PI_3 * cube(r) * (sld[i] - last_sld) * sas_3j1x_x(q*r); 32 32 last_sld = sld[i]; 33 33 r += thickness[i]; 34 34 } 35 f += M_4PI_3 * cube(r) * (solvent_sld - last_sld) * s ph_j1c(q*r);35 f += M_4PI_3 * cube(r) * (solvent_sld - last_sld) * sas_3j1x_x(q*r); 36 36 return f * f * 1.0e-4; 37 37 }
Note: See TracChangeset
for help on using the changeset viewer.