Changeset 4fd2c63 in sasmodels
- Timestamp:
- Aug 3, 2016 12:41:06 PM (8 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:
- b3796fa
- Parents:
- 0dd4199 (diff), ec87470 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Location:
- sasmodels
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/kernel_header.c
r1557a1e redf06e1 61 61 #define NEED_EXPM1 62 62 #define NEED_TGAMMA 63 // expf missing from windows? 64 #define expf exp 63 65 #else 64 66 #include <tgmath.h> // C99 type-generic math, so sin(float) => sinf -
sasmodels/models/lib/sas_erf.c
r1557a1e redf06e1 280 280 else 281 281 x = a;*/ 282 283 x = fabs f(a);282 // TODO: tinycc does not support fabsf 283 x = fabs(a); 284 284 285 285 … … 302 302 return (0.0); 303 303 } 304 305 304 z = expf(z); 306 305 … … 332 331 float y, z; 333 332 334 if (fabsf(x) > 1.0) 333 // TODO: tinycc does not support fabsf 334 if (fabs(x) > 1.0) 335 335 return (1.0 - erfcf(x)); 336 336 -
sasmodels/models/spherical_sld.py
r0dd4199 r4fd2c63 217 217 ] 218 218 # pylint: enable=bad-whitespace, line-too-long 219 source = ["lib/ sas_erf.c", "lib/librefl.c", "lib/sph_j1c.c", "spherical_sld.c"]219 source = ["lib/polevl.c", "lib/sas_erf.c", "lib/librefl.c", "lib/sph_j1c.c", "spherical_sld.c"] 220 220 single = False # TODO: fix low q behaviour 221 221 -
sasmodels/convert.py
rd119f34 r0dd4199 319 319 pars['n_shells'] = math.ceil(pars['n_shells']) 320 320 elif name == 'spherical_sld': 321 pars['n_shells'] = math.ceil(pars['n_shells']) 322 pars['npts_inter'] = math.ceil(pars['npts_inter']) 323 pars['func_inter0'] = math.trunc(pars['func_inter0']+0.5) 321 324 for k in range(1, 11): 325 pars['func_inter%d'%k] = math.trunc(pars['func_inter%d'%k]+0.5) 322 326 pars['thick_flat%d_pd_n'%k] = 0 323 327 pars['thick_inter%d_pd_n'%k] = 0
Note: See TracChangeset
for help on using the changeset viewer.