source:
sasview/sansmodels/src/sans/models/c_extensions/c_models.c
@
34c3020
Last change on this file since 34c3020 was 34c3020, checked in by Gervaise Alina <gervyh@…>, 15 years ago | |
---|---|
|
|
File size: 1.1 KB |
Rev | Line | |
---|---|---|
[ae3ce4e] | 1 | /** c_models |
2 | * | |
[af03ddd] | 3 | * Module containing all SANS model extensions |
[ae3ce4e] | 4 | * |
5 | * @author M.Doucet / UTK | |
6 | */ | |
7 | #include <Python.h> | |
8 | ||
9 | /** | |
10 | * Define empty module | |
11 | */ | |
12 | static PyMethodDef module_methods[] = { | |
[af03ddd] | 13 | {NULL} |
[ae3ce4e] | 14 | }; |
15 | ||
16 | ||
17 | #ifndef PyMODINIT_FUNC /* declarations for DLL import/export */ | |
18 | #define PyMODINIT_FUNC void | |
19 | #endif | |
20 | PyMODINIT_FUNC | |
[af03ddd] | 21 | initc_models(void) |
[ae3ce4e] | 22 | { |
23 | PyObject* m; | |
24 | ||
25 | m = Py_InitModule3("c_models", module_methods, | |
26 | "C extension module for SANS scattering models."); | |
[af03ddd] | 27 | |
[ae3ce4e] | 28 | addCCylinderModel(m); |
[8a48713] | 29 | addCParallelepipedModel(m); |
[ae3ce4e] | 30 | addCCoreShellCylinderModel(m); |
31 | addCCoreShellModel(m); | |
32 | addCEllipsoidModel(m); | |
33 | addCSphereModel(m); | |
[25579e8] | 34 | addCHardsphereStructure(m); |
35 | addCStickyHSStructure(m); | |
36 | addCHayterMSAStructure(m); | |
37 | addCSquareWellStructure(m); | |
[db1dcef] | 38 | addCDiamEllipFunc(m); |
39 | addCDiamCylFunc(m); | |
[ae3ce4e] | 40 | addCEllipticalCylinderModel(m); |
[5068697] | 41 | addCTriaxialEllipsoidModel(m); |
42 | addCFlexibleCylinderModel(m); | |
43 | addCStackedDisksModel(m); | |
[27a0771] | 44 | addCLamellarPSModel(m); |
45 | addCLamellarPSHGModel(m); | |
46 | addCProlateModel(m); | |
47 | addCOblateModel(m); | |
[34c3020] | 48 | addCLamellarModel(m); |
49 | addCLamellarFFHGModel(m); | |
[ae3ce4e] | 50 | addDisperser(m); |
51 | addCGaussian(m); | |
52 | addCLorentzian(m); | |
53 | ||
54 | } |
Note: See TracBrowser
for help on using the repository browser.