Changeset ee5d14d in sasmodels


Ignore:
Timestamp:
Jul 27, 2016 8:39:34 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:
63c6a08
Parents:
1557a1e
Message:

use sas_erf in spherical_sld

Location:
sasmodels/models
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/lib/librefl.c

    reb97b11 ree5d14d  
    4141        ind *= nu; 
    4242        // re-scale and normalize it so that max(erf)=1, min(erf)=0 
    43         func = erf(ind)/erf(nu)/2.0; 
     43        func = sas_erf(ind)/sas_erf(nu)/2.0; 
    4444        // shift it by +0.5 in y-direction so that min(erf) = 0 
    4545        func += 0.5; 
  • sasmodels/models/spherical_sld.py

    r42356c8 ree5d14d  
    217217              ] 
    218218# pylint: enable=bad-whitespace, line-too-long 
    219 source = ["lib/librefl.c",  "lib/sph_j1c.c", "spherical_sld.c"] 
    220 single = False 
     219source = ["lib/sas_erf.c", "lib/librefl.c",  "lib/sph_j1c.c", "spherical_sld.c"] 
     220single = False  # TODO: fix low q behaviour 
    221221 
    222222profile_axes = ['Radius (A)', 'SLD (1e-6/A^2)'] 
Note: See TracChangeset for help on using the changeset viewer.