Changeset 0278e3f in sasmodels for sasmodels/kernel_template.c
- Timestamp:
- Apr 6, 2016 7:22:46 PM (8 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 3a45c2c, e6408d0
- Parents:
- c4e7a5f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/kernel_template.c
rc4e7a5f r0278e3f 226 226 #ifdef IQXY_OPEN_LOOPS 227 227 double ret=0.0, norm=0.0; 228 #ifdef VOLUME_PARAMETERS229 double vol=0.0, norm_vol=0.0;230 #endif231 228 IQXY_OPEN_LOOPS 232 229 //for (int radius_i=0; radius_i < Nradius; radius_i++) { … … 243 240 // For cos(theta) fixed at 90, we effectively multiply top and bottom 244 241 // by 1e-6, so the effect cancels. 245 const double spherical_correction = fmax(fabs(cos(M_PI_180*theta)), 1 e-6);242 const double spherical_correction = fmax(fabs(cos(M_PI_180*theta)), 1.e-6); 246 243 weight *= spherical_correction; 247 244 #endif
Note: See TracChangeset
for help on using the changeset viewer.