Changeset 3a48772 in sasmodels for sasmodels/models/multilayer_vesicle.c


Ignore:
Timestamp:
Oct 14, 2016 5:23:40 PM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
a5b6997
Parents:
b716cc6
Message:

use predefined constants for fractions of pi

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/multilayer_vesicle.c

    r2c74c11 r3a48772  
    1919 
    2020        // layer 1 
    21         voli = 4.0*M_PI/3.0*ri*ri*ri; 
     21        voli = M_4PI_3*ri*ri*ri; 
    2222        fval += voli*sldi*sph_j1c(ri*q); 
    2323 
     
    2525 
    2626        // layer 2 
    27         voli = 4.0*M_PI/3.0*ri*ri*ri; 
     27        voli = M_4PI_3*ri*ri*ri; 
    2828        fval -= voli*sldi*sph_j1c(ri*q); 
    2929 
Note: See TracChangeset for help on using the changeset viewer.