Changeset 21fbab1 in sasmodels
- Timestamp:
- Dec 20, 2016 2:36:32 PM (8 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:
- d2deac2
- Parents:
- e83f2a0
- Location:
- sasmodels/models
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/core_multi_shell.c
rc5ac2b2 r21fbab1 8 8 } 9 9 10 double 11 form_volume(double core_radius, double n, double thickness[]); 12 double 13 form_volume(double core_radius, double n, double thickness[]) 10 static double 11 form_volume(double core_radius, double fp_n, double thickness[]) 14 12 { 15 13 double r = core_radius; 14 int n = (int)(fp_n+0.5); 16 15 for (int i=0; i < n; i++) { 17 16 r += thickness[i]; … … 20 19 } 21 20 22 double21 static double 23 22 Iq(double q, double core_sld, double core_radius, 24 double solvent_sld, double num_shells, double sld[], double thickness[]); 25 double 26 Iq(double q, double core_sld, double core_radius, 27 double solvent_sld, double num_shells, double sld[], double thickness[]) 23 double solvent_sld, double fp_n, double sld[], double thickness[]) 28 24 { 29 const int n = (int) ceil(num_shells);25 const int n = (int)(fp_n+0.5); 30 26 double f, r, last_sld; 31 27 r = core_radius; -
sasmodels/models/core_multi_shell.py
r2d73a53 r21fbab1 107 107 Returns the SLD profile *r* (Ang), and *rho* (1e-6/Ang^2). 108 108 """ 109 n = int(n+0.5) 109 110 z = [] 110 111 rho = []
Note: See TracChangeset
for help on using the changeset viewer.