Changeset 0a3d9b2 in sasmodels
- Timestamp:
- Oct 18, 2016 11:08:53 AM (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:
- 251f54b
- Parents:
- 3ac4e1b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/core_shell_ellipsoid.c
r5bddd89 r0a3d9b2 49 49 const double uplim = 1.0; 50 50 51 double summ = 0.0; //initialize intergral52 51 53 52 const double delpc = core_sld - shell_sld; //core - shell … … 59 58 const double polar_shell = radius_equat_core*x_core + thick_shell*x_polar_shell; 60 59 61 for(int i=0;i<N_POINTS_76;i++) { 60 double summ = 0.0; //initialize intergral 61 for(int i=0;i<76;i++) { 62 62 double zi = 0.5*( Gauss76Z[i]*(uplim-lolim) + uplim + lolim ); 63 double yyy = Gauss76Wt[i] * gfn4(zi, 64 radius_equat_core, 65 polar_core, 66 equat_shell, 67 polar_shell, 68 delpc, 69 delps, 70 q); 71 summ += yyy; 63 double yyy = gfn4(zi, radius_equat_core, polar_core, equat_shell, 64 polar_shell, delpc, delps, q); 65 summ += Gauss76Wt[i] * yyy; 72 66 } 67 summ *= 0.5*(uplim-lolim); 73 68 74 double answer = 0.5*(uplim-lolim)*summ; 75 //convert to [cm-1] 76 answer *= 1.0e-4; 77 78 return answer; 69 // convert to [cm-1] 70 return 1.0e-4 * summ; 79 71 } 80 72
Note: See TracChangeset
for help on using the changeset viewer.