Ignore:
Timestamp:
Sep 10, 2018 4:16:46 PM (6 years ago)
Author:
Paul Kienzle <pkienzle@…>
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
Message:

clean up effective radius functions; improve mono_gauss_coil accuracy; start moving VR into C

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/core_shell_ellipsoid.c

    r3c60146 ree60aa7  
    7373    const double radius_polar_tot = radius_equat_core*x_core + thick_shell*x_polar_shell; 
    7474 
    75     if (mode == 1) { 
     75    switch (mode) { 
     76    case 1: // equivalent sphere 
    7677        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 
    7879        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 
    8081        return (radius_polar_tot < radius_equat_tot ? radius_polar_tot : radius_equat_tot); 
    81     } else { 
     82    case 4: // max outer radius 
    8283        return (radius_polar_tot > radius_equat_tot ? radius_polar_tot : radius_equat_tot); 
    8384    } 
Note: See TracChangeset for help on using the changeset viewer.