Changeset 2f5c6d4 in sasmodels for sasmodels/models/barbell.c
- Timestamp:
- Jul 25, 2016 10:38:21 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:
- a3a0c5c
- Parents:
- a4280bd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/barbell.c
r26141cb r2f5c6d4 5 5 double bell_radius, double radius, double length, 6 6 double theta, double phi); 7 8 #define INVALID(v) (v.bell_radius < v.radius) 7 9 8 10 //barbell kernel - same as dumbell … … 58 60 double bell_radius, double radius, double length) 59 61 { 60 // Exclude invalid inputs.61 if (bell_radius < radius) return NAN;62 62 const double h = -sqrt(bell_radius*bell_radius - radius*radius); 63 63 const double half_length = 0.5*length; … … 100 100 const double alpha = acos(cos_val); // rod angle relative to q 101 101 102 // Exclude invalid inputs.103 if (bell_radius < radius) return NAN;104 102 const double h = -sqrt(square(bell_radius) - square(radius)); 105 103 const double half_length = 0.5*length;
Note: See TracChangeset
for help on using the changeset viewer.