Ignore:
Timestamp:
Jul 24, 2016 10:56:45 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:
a4280bd
Parents:
f1765a2
Message:

implicit Iqxy; fix divide by 0 for q=0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/mass_surface_fractal.c

    r7ed702f r2c74c11  
    66          double cluster_rg, 
    77          double primary_rg); 
    8  
    9 double Iqxy(double qx, double qy, 
    10           double mass_dim, 
    11           double surface_dim, 
    12           double cluster_rg, 
    13           double primary_rg); 
    14  
    158 
    169static double _mass_surface_fractal_kernel(double q, 
     
    5952            primary_rg); 
    6053} 
    61  
    62 // Iqxy is never called since no orientation or magnetic parameters. 
    63 double Iqxy(double qx, double qy, 
    64           double mass_dim, 
    65           double surface_dim, 
    66           double cluster_rg, 
    67           double primary_rg) 
    68 { 
    69     double q = sqrt(qx*qx + qy*qy); 
    70     return _mass_surface_fractal_kernel(q, 
    71            mass_dim, 
    72            surface_dim, 
    73            cluster_rg, 
    74            primary_rg); 
    75 } 
    76  
Note: See TracChangeset for help on using the changeset viewer.