Changeset ee60aa7 in sasmodels for sasmodels/models/core_shell_ellipsoid.c
- Timestamp:
- Sep 10, 2018 4:16:46 PM (6 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- d299327
- Parents:
- 3f818b2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/core_shell_ellipsoid.c
r3c60146 ree60aa7 73 73 const double radius_polar_tot = radius_equat_core*x_core + thick_shell*x_polar_shell; 74 74 75 if (mode == 1) { 75 switch (mode) { 76 case 1: // equivalent sphere 76 77 return radius_from_volume(radius_equat_core, x_core, thick_shell, x_polar_shell); 77 } else if (mode == 2) {78 case 2: // average outer curvature 78 79 return radius_from_curvature(radius_equat_core, x_core, thick_shell, x_polar_shell); 79 } else if (mode == 3) {80 case 3: // min outer radius 80 81 return (radius_polar_tot < radius_equat_tot ? radius_polar_tot : radius_equat_tot); 81 } else {82 case 4: // max outer radius 82 83 return (radius_polar_tot > radius_equat_tot ? radius_polar_tot : radius_equat_tot); 83 84 }
Note: See TracChangeset
for help on using the changeset viewer.