Changeset 890ac7f1 in sasview for sansmodels/src/sans/models/c_extensions/refl_adv.c
- Timestamp:
- Nov 30, 2011 2:43:17 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:
- 2138c061
- Parents:
- e161fac
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/c_extensions/refl_adv.c
r96656e3 r890ac7f1 16 16 int n = dp[0]; 17 17 int i,j,fun_type[n+2]; 18 double nsl; 18 19 19 20 double scale = dp[1]; … … 25 26 26 27 double sld[n+2],sld_im[n+2],thick_inter[n+2],thick[n+2],fun_coef[n+2],total_thick; 27 fun_type[0] = dp[3]; 28 29 int n_s; 30 double sld_i,sldim_i,dz,phi,R,ko2; 31 double sign,erfunc; 32 double pi; 33 34 fun_type[0] = dp[3]; 28 35 fun_coef[0] = fabs(dp[70]); 29 36 for (i =1; i<=n; i++){ … … 48 55 fun_coef[n+1] = 0.0; 49 56 50 double nsl=npts;//21.0; //nsl = Num_sub_layer: MUST ODD number in double //no other number works now 51 int n_s; 52 53 double sld_i,sldim_i,dz,phi,R,ko2; 54 double sign,erfunc; 55 double pi; 57 nsl=npts;//21.0; //nsl = Num_sub_layer: MUST ODD number in double //no other number works now 58 56 59 complex inv_n,phi1,alpha,alpha2,kn,fnm,fnp,rn,Xn,nn,nn2,an,nnp1,one,zero,two,n_sub,n_sup,knp1,Xnp1; 57 60 pi = 4.0*atan(1.0);
Note: See TracChangeset
for help on using the changeset viewer.