Changeset c138211 in sasmodels for sasmodels/models/barbell.c


Ignore:
Timestamp:
Dec 21, 2015 11:32:08 AM (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:
4c2c535
Parents:
5258859
Message:

return NAN to signal invalid kernel parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/barbell.c

    r0706431 rc138211  
    5151    double sn, cn; // slots to hold sincos function output 
    5252 
    53     if (bell_radius < radius) return -1.0; 
     53    if (bell_radius < radius) return NAN; 
    5454 
    5555    const double lower = 0.0; 
     
    9595 
    9696    // Exclude invalid inputs. 
    97     if (bell_radius < radius) return -1.0; 
     97    if (bell_radius < radius) return NAN; 
    9898 
    9999    // Compute angle alpha between q and the cylinder axis 
Note: See TracChangeset for help on using the changeset viewer.