Changeset ee60aa7 in sasmodels for sasmodels/models/pringle.c


Ignore:
Timestamp:
Sep 10, 2018 2: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/pringle.c

    rd277229 ree60aa7  
    107107effective_radius(int mode, double radius, double thickness, double alpha, double beta) 
    108108{ 
    109     if (mode == 1) { 
     109    switch (mode) { 
     110    case 1: // equivalent sphere 
    110111        return cbrt(0.75*radius*radius*thickness); 
    111     } else { 
     112    case 2: // radius 
    112113        return radius; 
    113114    } 
Note: See TracChangeset for help on using the changeset viewer.