source: sasview/sansmodels/src/sans/models/c_extensions/c_models.c @ 5385a9e

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 5385a9e was c724ccd, checked in by Jae Cho <jhjcho@…>, 15 years ago

More models added and correction of Wrappergenerator on model parameter value precision

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/** c_models
2 *
3 * Module containing all SANS model extensions
4 *
5 * @author   M.Doucet / UTK
6 */
7#include <Python.h>
8#define PY_ARRAY_UNIQUE_SYMBOL PyArray_API_sans
9#include "arrayobject.h"
10/**
11 * Define empty module
12 */
13static PyMethodDef module_methods[] = {
14    {NULL}
15};
16
17
18#ifndef PyMODINIT_FUNC  /* declarations for DLL import/export */
19#define PyMODINIT_FUNC void
20#endif
21PyMODINIT_FUNC
22initc_models(void)
23{
24    PyObject* m;
25
26    m = Py_InitModule3("c_models", module_methods,
27                       "C extension module for SANS scattering models.");
28
29        import_array();
30        addCCylinderModel(m);
31        addCParallelepipedModel(m);
32        addCCoreShellCylinderModel(m);
33        addCCoreShellModel(m);
34        addCCoreFourShellModel(m);
35        addCEllipsoidModel(m);
36        addCSphereModel(m);
37        addCFuzzySphereModel(m);
38        addCHardsphereStructure(m);
39        addCStickyHSStructure(m);
40        addCHayterMSAStructure(m);
41        addCSquareWellStructure(m);
42        addCDiamEllipFunc(m);
43        addCDiamCylFunc(m);
44        addCEllipticalCylinderModel(m);
45        addCTriaxialEllipsoidModel(m);
46        addCFlexibleCylinderModel(m);
47        addCFlexCylEllipXModel(m);
48        addCStackedDisksModel(m);
49        addCLamellarPSModel(m);
50        addCLamellarPSHGModel(m);
51        addCProlateModel(m);
52        addCOblateModel(m);
53        addCLamellarModel(m);
54        addCLamellarFFHGModel(m);
55        addDisperser(m);
56        addCGaussian(m);
57        addCSchulz(m);
58        addCLogNormal(m);
59        addCLorentzian(m);
60        addCHollowCylinderModel(m);
61        addCMultiShellModel(m);
62        addCVesicleModel(m);
63        addCBinaryHSModel(m);
64        addCBinaryHSPSF11Model(m);
65        addCPoly_GaussCoil(m);
66        addCFractalModel(m);
67
68}
Note: See TracBrowser for help on using the repository browser.