Changeset e6408d0 in sasmodels


Ignore:
Timestamp:
Apr 6, 2016 5:44:11 PM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
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:
3a45c2c, 65279d8
Parents:
0278e3f
Message:

new normalization code requires form_volume=1.0 if there is no volume normalization

Location:
sasmodels
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/generate.py

    r4d76711 re6408d0  
    1515 
    1616    *form_volume(p1, p2, ...)* returns the volume of the form with particular 
    17     dimension. 
     17    dimension, or 1.0 if no volume normalization is required. 
    1818 
    1919    *ER(p1, p2, ...)* returns the effective radius of the form with 
  • sasmodels/models/flexible_cylinder.c

    r43b7eea re6408d0  
    1010double form_volume(double length, double kuhn_length, double radius) 
    1111{ 
    12  
    13       return 0.0; 
     12    return 1.0; 
    1413} 
    1514 
  • sasmodels/models/lib/sas_JN.c

    r0278e3f re6408d0  
    5252 
    5353    const double MACHEP = 1.11022302462515654042E-16; 
    54     double pkm2, pkm1, pk, xk, r, ans, xinv; 
     54    double pkm2, pkm1, pk, xk, r, ans; 
    5555    int k, sign; 
    5656 
     
    122122 
    123123    #else 
    124         xinv = 1.0/x; 
     124        const double xinv = 1.0/x; 
    125125        pkm1 = ans * xinv; 
    126126        k = n-1; 
Note: See TracChangeset for help on using the changeset viewer.