Changeset 36cbbe74 in sasview
- Timestamp:
- Nov 30, 2011 12:57:08 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:
- a807ffd
- Parents:
- b9765ad
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/c_extensions/onion.c
r890ac7f1 r36cbbe74 9 9 // some details can be found in sld_cal.c 10 10 double so_kernel(double dp[], double q) { 11 int n = dp[0];11 const int n = dp[0]; 12 12 double scale = dp[1]; 13 13 double rad_core0 = dp[2]; … … 15 15 double sld_solv = dp[4]; 16 16 double background = dp[5]; 17 double sld_out[n+2];18 double slope[n+2];19 double sld_in[n+2];20 double thick[n+2];21 double A[n+2];22 int fun_type[n+2];23 17 int i,j; 24 18 double bes,fun,alpha,f,vol,vol_pre,vol_sub,qr,r,contr,f2; … … 26 20 double pi; 27 21 double r0 = 0.0; 22 23 24 double sld_out[n+2]; 25 double slope[n+2]; 26 double sld_in[n+2]; 27 double thick[n+2]; 28 double A[n+2]; 29 int fun_type[n+2]; 30 28 31 29 32 for (i =1; i<=n; i++){
Note: See TracChangeset
for help on using the changeset viewer.