Changeset b4679de in sasview for sansmodels/src/sans/models/c_extensions/lamellarPS.c
- Timestamp:
- Aug 4, 2009 3:32:38 PM (15 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:
- fbe5d3e
- Parents:
- 8e91f01
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/c_extensions/lamellarPS.c
r27a0771 rb4679de 19 19 double lamellarPS_analytical_1D(LamellarPSParameters *pars, double q) { 20 20 double dp[8]; 21 21 22 22 // Fill paramater array 23 23 dp[0] = pars->scale; … … 31 31 32 32 // Call library function to evaluate model 33 return LamellarPS(dp, q); 33 return LamellarPS(dp, q); 34 34 } 35 35 /** … … 42 42 double q; 43 43 q = sqrt(qx*qx+qy*qy); 44 return lamellarPS_analytical_ 2D_scaled(pars, q, qx/q, qy/q);45 } 44 return lamellarPS_analytical_1D(pars, q); 45 } 46 46 47 47 … … 54 54 */ 55 55 double lamellarPS_analytical_2D(LamellarPSParameters *pars, double q, double phi) { 56 return lamellarPS_analytical_ 2D_scaled(pars, q, cos(phi), sin(phi));57 } 58 56 return lamellarPS_analytical_1D(pars,q); 57 } 58 59 59 /** 60 60 * Function to evaluate 2D scattering function … … 65 65 * @return: function value 66 66 */ 67 double lamellarPS_analytical_2D_scaled(LamellarPSParameters *pars, double q, double q_x, double q_y) {68 69 return 1.0;70 }71 72 67 68
Note: See TracChangeset
for help on using the changeset viewer.