Changeset 61fd21d in sasmodels


Ignore:
Timestamp:
Jan 22, 2016 5:49:54 AM (8 years ago)
Author:
piotr
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:
03582f9, 97cb037
Parents:
b968fe8
Message:

Actively check the right value of mass_dim to avoid NaNs?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/mass_fractal.c

    r9c461c7 r61fd21d  
    1717          double cutoff_length) 
    1818{ 
     19    // Actively check the argument. 
     20    if (mass_dim <= 1.0){ 
     21       return 0.0; 
     22    } 
     23 
    1924    //calculate P(q) 
    2025    double pq = sph_j1c(q*radius); 
Note: See TracChangeset for help on using the changeset viewer.