Changeset a24f530 in sasview for sansmodels/src/sans/models/c_extensions
- Timestamp:
- Dec 7, 2011 4:23:04 PM (13 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:
- 839f7e28
- Parents:
- 71d2194
- Location:
- sansmodels/src/sans/models/c_extensions
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/c_extensions/barbell.c
r6e24633 ra24f530 35 35 36 36 double bar2d_kernel(double dp[], double q, double alpha) { 37 int i,j;37 int j; 38 38 double Pi; 39 39 double scale,contr,bkg,sldc,slds; … … 130 130 double cyl_x, cyl_y, cyl_z; 131 131 double q_z; 132 double alpha, vol,cos_val;132 double alpha, cos_val; 133 133 double answer; 134 134 double dp[7]; -
sansmodels/src/sans/models/c_extensions/bcc.c
re161fac ra24f530 59 59 */ 60 60 double bc_analytical_2D_scaled(BCParameters *pars, double q, double q_x, double q_y) { 61 double a3_x, a3_y, a3_z, a2_x, a2_y, a1_x, a1_y; 62 double b3_x, b3_y, b3_z, b2_x, b2_y, b1_x, b1_y; 61 double b3_x, b3_y, b3_z, b1_x, b1_y; 63 62 double q_z; 64 double alpha, vol,cos_val_b3, cos_val_b2, cos_val_b1;63 double alpha, cos_val_b3, cos_val_b2, cos_val_b1; 65 64 double a1_dot_q, a2_dot_q,a3_dot_q; 66 65 double answer; -
sansmodels/src/sans/models/c_extensions/capcyl.c
r890ac7f1 ra24f530 36 36 37 37 double capcyl2d_kernel(double dp[], double q, double alpha) { 38 int i,j;38 int j; 39 39 double Pi; 40 40 double scale,contr,bkg,sldc,slds; … … 131 131 double cyl_x, cyl_y, cyl_z; 132 132 double q_z; 133 double alpha, vol,cos_val;133 double alpha, cos_val; 134 134 double answer; 135 135 double dp[7]; -
sansmodels/src/sans/models/c_extensions/disperser.c
r59b9b675 ra24f530 321 321 PyObject *temp; 322 322 323 324 323 step = 0.0; 324 n_pts = PyInt_AsLong( PyDict_GetItemString(self->params, "n_pts") ); 325 325 326 326 // If we exhausted the parameter array, simply evaluate … … 447 447 448 448 449 static PyMethodDef module_methods[] = {450 {NULL} 451 };449 //static PyMethodDef module_methods[] = { 450 // {NULL} 451 //}; 452 452 453 453 /** -
sansmodels/src/sans/models/c_extensions/lamellarPS.c
rf10063e ra24f530 11 11 12 12 /*LamellarPS_kernel() was moved from libigor to get rid of polydipersity in del(thickness) that we provide from control panel. 13 /*LamellarPSX : calculates the form factor of a lamellar structure - with S(q) effects included13 LamellarPSX : calculates the form factor of a lamellar structure - with S(q) effects included 14 14 ------- 15 15 ------- resolution effects ARE NOT included, but only a CONSTANT default value, not the real q-dependent resolution!! -
sansmodels/src/sans/models/c_extensions/libmultifunc/librefl.h
r0164899a ra24f530 1 #if !defined( o_h)1 #if !defined(librefl_h) 2 2 #define librefl_h 3 3 -
sansmodels/src/sans/models/c_extensions/refl_adv.c
r3be94e8 ra24f530 25 25 double npts = dp[69]; //number of sub_layers in each interface 26 26 27 double total_thick ;27 double total_thick=0.0; 28 28 29 29 int n_s; 30 30 double sld_i,sldim_i,dz,phi,R,ko2; 31 double sign,erfunc;32 31 double pi; 33 32 … … 38 37 double* thick; 39 38 double* fun_coef; 40 complex inv_n,phi1,alpha,alpha2,kn,fnm,fnp,rn,Xn,nn,nn2,an,nnp1,one,zero,two,n_sub,n_sup,knp1,Xnp1;39 complex phi1,alpha,alpha2,kn,fnm,fnp,rn,Xn,nn,nn2,an,nnp1,one,two,n_sub,n_sup,knp1,Xnp1; 41 40 42 41 fun_type = (int*)malloc((n+2)*sizeof(int)); … … 74 73 pi = 4.0*atan(1.0); 75 74 one = cassign(1.0,0.0); 76 //zero= cassign(0.0,0.0);77 two = cassign(0.0,-2.0);75 Xn = cassign(0.0,0.0); 76 two = cassign(0.0,-2.0); 78 77 79 78 //Checking if floor is available. -
sansmodels/src/sans/models/c_extensions/triaxial_ellipsoid.c
r4628e31 ra24f530 36 36 double t,a,b,c; 37 37 double kernel; 38 double pi = 4.0*atan(1.0);39 38 40 39 a = pars->semi_axisA ;
Note: See TracChangeset
for help on using the changeset viewer.