Changeset 0420af7 in sasmodels for sasmodels/models/hollow_cylinder.c


Ignore:
Timestamp:
Jan 21, 2016 2:17:17 PM (8 years ago)
Author:
krzywon
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:
0da2a01
Parents:
6458608
Message:

Modified hollow_cylinder to reject invalid inputs, added VR, ER and
tests. Si now has pre-calculated factorials for faster processing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/hollow_cylinder.c

    r07e72e6 r0420af7  
    114114        double norm,volume;     //final calculation variables 
    115115         
     116        if (core_radius >= radius || radius >= length) { 
     117                return NAN; 
     118        } 
     119         
    116120        delrho = solvent_sld - sld; 
    117121        lower = 0.0; 
     
    132136} 
    133137 
    134 //FIXME: Factor of two difference 
    135138double Iqxy(double qx, double qy, double radius, double core_radius, double length, double sld, 
    136139        double solvent_sld, double theta, double phi) 
Note: See TracChangeset for help on using the changeset viewer.