Changeset a807206 in sasmodels for sasmodels/models/mass_fractal.c


Ignore:
Timestamp:
Sep 30, 2016 10:42:06 PM (8 years ago)
Author:
butler
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:
caddb14, 5031ca3
Parents:
2222134
Message:

updating more parameter names addressing #649

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/mass_fractal.c

    r2c74c11 ra807206  
    33double Iq(double q, 
    44          double radius, 
    5           double mass_dim, 
     5          double fractal_dim_mass, 
    66          double cutoff_length); 
    77 
    88static double _mass_fractal_kernel(double q, 
    99          double radius, 
    10           double mass_dim, 
     10          double fractal_dim_mass, 
    1111          double cutoff_length) 
    1212{ 
    1313    // Actively check the argument. 
    14     if (mass_dim <= 1.0){ 
     14    if (fractal_dim_mass <= 1.0){ 
    1515       return 0.0; 
    1616    } 
     
    2121 
    2222    //calculate S(q) 
    23     double mmo = mass_dim-1.0; 
     23    double mmo = fractal_dim_mass-1.0; 
    2424    double sq = sas_gamma(mmo)*sin((mmo)*atan(q*cutoff_length)); 
    2525    sq *= pow(cutoff_length, mmo); 
     
    3939double Iq(double q, 
    4040          double radius, 
    41           double mass_dim, 
     41          double fractal_dim_mass, 
    4242          double cutoff_length) 
    4343{ 
    4444    return _mass_fractal_kernel(q, 
    4545           radius, 
    46            mass_dim, 
     46           fractal_dim_mass, 
    4747           cutoff_length); 
    4848} 
Note: See TracChangeset for help on using the changeset viewer.