Changeset 062c56d in sasmodels for sasmodels/kernel_template.c
- Timestamp:
- Nov 24, 2015 3:41:47 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:
- b514adf
- Parents:
- 5753e4e
- git-author:
- Paul Kienzle <pkienzle@…> (11/24/15 15:38:56)
- git-committer:
- Paul Kienzle <pkienzle@…> (11/24/15 15:41:47)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/kernel_template.c
r6ee9d39 r062c56d 125 125 if (weight > cutoff) { 126 126 const double scattering = Iq(qi, IQ_PARAMETERS); 127 if (scattering >= 0.0) { // scattering cannot be negative127 //if (scattering >= 0.0) { // scattering cannot be negative 128 128 ret += weight*scattering; 129 129 norm += weight; … … 133 133 norm_vol += vol_weight; 134 134 #endif 135 }135 //} 136 136 //else { printf("exclude qx,qy,I:%%g,%%g,%%g\n",qi,scattering); } 137 137 } … … 198 198 199 199 const double scattering = Iqxy(qxi, qyi, IQXY_PARAMETERS); 200 if (scattering >= 0.0) { // scattering cannot be negative200 //if (scattering >= 0.0) { // scattering cannot be negative 201 201 // TODO: use correct angle for spherical correction 202 202 // Definition of theta and phi are probably reversed relative to the … … 219 219 #endif 220 220 norm_vol += vol_weight; 221 }221 //} 222 222 //else { printf("exclude qx,qy,I:%%g,%%g,%%g\n",qi,scattering); } 223 223 }
Note: See TracChangeset
for help on using the changeset viewer.