Changeset 5d4777d in sasmodels for sasmodels/models/cylinder_onefile.py
- Timestamp:
- Sep 1, 2014 11:24:38 PM (10 years ago)
- 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:
- f4cf580
- Parents:
- ff7119b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/cylinder_onefile.py
ra7684e5 r5d4777d 154 154 source = [ "lib/J1.c", "lib/gauss76.c", "lib/cylkernel.c" ] 155 155 156 c_form_volume = """156 form_volume = """ 157 157 return M_PI*radius*radius*length; 158 """159 160 c_Iq = """158 """ 159 160 Iq = """ 161 161 const real h = REAL(0.5)*length; 162 162 real summ = REAL(0.0); … … 174 174 const real s = (sld - solvent_sld) * form_volume(radius, length); 175 175 return REAL(1.0e-4) * form * s * s; 176 """177 178 c_Iqxy = """176 """ 177 178 Iqxy = """ 179 179 real sn, cn; // slots to hold sincos function output 180 180 … … 204 204 const real s = (sld - solvent_sld) * form_volume(radius, length); 205 205 return REAL(1.0e-4) * form * s * s; // * correction; 206 """206 """ 207 207 208 208 def ER(radius, length):
Note: See TracChangeset
for help on using the changeset viewer.