Changeset 9c79c32 in sasmodels
- Timestamp:
- Jan 6, 2016 9:20:31 PM (9 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:
- 74667d3
- Parents:
- 8b25ee1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/kernel_template.c
re3a9733 r9c79c32 204 204 205 205 const double scattering = Iqxy(qxi, qyi, IQXY_PARAMETERS); 206 if (!isnan(scattering)) { // if scattering is bad, exclude it from sum 206 207 //if (scattering >= 0.0) { // scattering cannot be negative 207 208 // TODO: use correct angle for spherical correction … … 214 215 #if defined(IQXY_HAS_THETA) // && 0 215 216 const double spherical_correction 216 = (Ntheta>1 ? fabs(cos(M_PI_180* phi))*M_PI_2:1.0);217 = (Ntheta>1 ? fabs(cos(M_PI_180*theta))*M_PI_2:1.0); 217 218 const double next = spherical_correction * weight * scattering; 218 219 #else … … 233 234 #endif 234 235 norm_vol += vol_weight; 235 //}236 } 236 237 //else { printf("exclude qx,qy,I:%%g,%%g,%%g\n",qi,scattering); } 237 238 }
Note: See TracChangeset
for help on using the changeset viewer.