Changeset 839f7e28 in sasview for sansmodels/src/sans/models/c_extensions/refl.c
- Timestamp:
- Dec 7, 2011 4:40:16 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:
- 33aea7f
- Parents:
- a24f530
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/c_extensions/refl.c
r3be94e8 r839f7e28 23 23 double background = dp[6]; 24 24 25 double total_thick ;25 double total_thick=0.0; 26 26 double nsl=21.0; //nsl = Num_sub_layer: 27 27 int n_s; 28 double sld_i, sldim_i,dz,phi,R,ko2;29 double sign,erfunc,fun;28 double sld_i,dz,phi,R,ko2; 29 double fun; 30 30 double pi; 31 31 … … 34 34 double* thick; 35 35 int*fun_type; 36 complex inv_n,phi1,alpha,alpha2,kn,fnm,fnp,rn,Xn,nn,nn2,an,nnp1,one,zero,two,n_sub,n_sup,knp1,Xnp1;36 complex phi1,alpha,alpha2,kn,fnm,fnp,rn,Xn,nn,nn2,an,nnp1,one,two,n_sub,n_sup,knp1,Xnp1; 37 37 38 38 sld = (double*)malloc((n+2)*sizeof(double)); … … 58 58 59 59 pi = 4.0*atan(1.0); 60 one = cassign(1.0,0.0); 61 //zero = cassign(0.0,0.0); 62 two= cassign(0.0,-2.0); 60 Xn = cassign(0.0,0.0); 61 two = cassign(0.0,-2.0); 63 62 64 63 //Checking if floor is available.
Note: See TracChangeset
for help on using the changeset viewer.