Changeset c138211 in sasmodels
- Timestamp:
- Dec 21, 2015 9:32:08 AM (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:
- 4c2c535
- Parents:
- 5258859
- Location:
- sasmodels
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/kernel_template.c
r062c56d rc138211 125 125 if (weight > cutoff) { 126 126 const double scattering = Iq(qi, IQ_PARAMETERS); 127 //if (scattering >= 0.0) { // scattering cannot be negative 127 // allow kernels to exclude invalid regions by returning NaN 128 if (!isnan(scattering)) { 128 129 ret += weight*scattering; 129 130 norm += weight; … … 133 134 norm_vol += vol_weight; 134 135 #endif 135 //}136 } 136 137 //else { printf("exclude qx,qy,I:%%g,%%g,%%g\n",qi,scattering); } 137 138 } -
sasmodels/models/barbell.c
r0706431 rc138211 51 51 double sn, cn; // slots to hold sincos function output 52 52 53 if (bell_radius < radius) return -1.0;53 if (bell_radius < radius) return NAN; 54 54 55 55 const double lower = 0.0; … … 95 95 96 96 // Exclude invalid inputs. 97 if (bell_radius < radius) return -1.0;97 if (bell_radius < radius) return NAN; 98 98 99 99 // Compute angle alpha between q and the cylinder axis -
sasmodels/models/capped_cylinder.c
r34756fd rc138211 88 88 89 89 // Exclude invalid inputs. 90 if (cap_radius < radius) return -1.0;90 if (cap_radius < radius) return NAN; 91 91 92 92 const double lower = 0.0; … … 138 138 139 139 // Exclude invalid inputs. 140 if (cap_radius < radius) return -1.0;140 if (cap_radius < radius) return NAN; 141 141 142 142 // Compute angle alpha between q and the cylinder axis -
sasmodels/models/triaxial_ellipsoid.c
r1ec7efa rc138211 17 17 double rpolar) 18 18 { 19 // if (req_minor > req_major || req_major > rpolar) return -1.0; // Exclude invalid region19 // if (req_minor > req_major || req_major > rpolar) return NAN; // Exclude invalid region 20 20 21 21 double sn, cn; … … 62 62 double psi) 63 63 { 64 // if (req_minor > req_major || req_major > rpolar) return -1.0; // Exclude invalid region64 // if (req_minor > req_major || req_major > rpolar) return NAN; // Exclude invalid region 65 65 66 66 double stheta, ctheta;
Note: See TracChangeset
for help on using the changeset viewer.