Changeset af03ddd in sasview for sansmodels/src/sans/models/c_extensions
- Timestamp:
- Aug 18, 2008 4:19:47 PM (17 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- a86bbe9
- Parents:
- fca6936
- Location:
- sansmodels/src/sans/models/c_extensions
- Files:
-
- 1 added
- 2 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/c_extensions/c_models.c
rae3ce4e raf03ddd 1 1 /** c_models 2 2 * 3 * Module containing all SANS model extensions 3 * Module containing all SANS model extensions 4 4 * 5 5 * @author M.Doucet / UTK … … 11 11 */ 12 12 static PyMethodDef module_methods[] = { 13 {NULL} 13 {NULL} 14 14 }; 15 15 … … 19 19 #endif 20 20 PyMODINIT_FUNC 21 initc_models(void) 21 initc_models(void) 22 22 { 23 23 PyObject* m; … … 25 25 m = Py_InitModule3("c_models", module_methods, 26 26 "C extension module for SANS scattering models."); 27 27 28 28 addCCylinderModel(m); 29 29 addCCoreShellCylinderModel(m); -
sansmodels/src/sans/models/c_extensions/cylinder.h
rae3ce4e raf03ddd 2 2 #define cylinder_h 3 3 4 /** Structure definition for cylinder parameters 4 /** Structure definition for cylinder parameters 5 5 * [PYTHONCLASS] = CylinderModel 6 * [DISP_PARAMS] = radius, length, cyl_theta, cyl_phi 6 7 * */ 7 8 typedef struct { 8 /// Scale factor 9 /// Scale factor 9 10 // [DEFAULT]=scale=1.0 10 11 double scale; 11 12 /// Radius of the cylinder [A] 12 // [DEFAULT]=radius=20.0 A 13 // [DEFAULT]=radius=20.0 A 13 14 double radius; 14 15 /// Length of the cylinder [A] … … 20 21 /// Incoherent Background (cm-1) 0.000 21 22 // [DEFAULT]=background=0 cm-1 22 double background; 23 double background; 23 24 /// Orientation of the cylinder axis w/respect incoming beam [rad] 24 25 // [DEFAULT]=cyl_theta=1.0 rad … … 26 27 /// Orientation of the cylinder in the plane of the detector [rad] 27 28 // [DEFAULT]=cyl_phi=1.0 rad 28 double cyl_phi; 29 double cyl_phi; 29 30 } CylinderParameters; 30 31
Note: See TracChangeset
for help on using the changeset viewer.