Changeset 0d6e865 in sasmodels for sasmodels/kernel_template.c
- Timestamp:
- Oct 11, 2016 1:42:00 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:
- 1fdb555
- Parents:
- 19e7ca7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/kernel_template.c
r6a0d6aa r0d6e865 264 264 #if defined(IQXY_HAS_THETA) 265 265 // Force a nominal value for the spherical correction even when 266 // theta is + 90/-90 so that there are no divide by zero problems.267 // For cos(theta) fixed at 90, we effectively multiply top and bottom266 // theta is +0/180 so that there are no divide by zero problems. 267 // For sin(theta) fixed at 0 and 180, we effectively multiply top and bottom 268 268 // by 1e-6, so the effect cancels. 269 269 const double spherical_correction = fmax(fabs(cos(M_PI_180*theta)), 1.e-6);
Note: See TracChangeset
for help on using the changeset viewer.