Changeset 994d77f in sasmodels for sasmodels/models/lamellar.py


Ignore:
Timestamp:
Oct 30, 2014 10:33:53 AM (9 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:
ef2861b
Parents:
d087487b
Message:

Convert double to float rather than using real

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/lamellar.py

    r19dcb933 r994d77f  
    7777# This should perhaps be volume normalized? 
    7878form_volume = """ 
    79     return REAL(1.0); 
     79    return 1.0; 
    8080    """ 
    8181 
    8282Iq = """ 
    83     const real sub = sld - solvent_sld; 
    84     const real qsq = q*q; 
    85     return REAL(4.0e-4)*M_PI*sub*sub/qsq * (REAL(1.0)-cos(q*thickness)) 
     83    const double sub = sld - solvent_sld; 
     84    const double qsq = q*q; 
     85    return 4.0e-4*M_PI*sub*sub/qsq * (1.0-cos(q*thickness)) 
    8686        / (thickness*qsq); 
    8787    """ 
     
    8989Iqxy = """ 
    9090    // never called since no orientation or magnetic parameters. 
    91     return REAL(-1.0); 
     91    return -1.0; 
    9292    """ 
    9393 
Note: See TracChangeset for help on using the changeset viewer.