Changeset 839f7e28 in sasview for sansmodels/src/sans/models/c_extensions
- 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
- Location:
- sansmodels/src/sans/models/c_extensions
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/c_extensions/fcc.c
r890ac7f1 r839f7e28 58 58 */ 59 59 double fc_analytical_2D_scaled(FCParameters *pars, double q, double q_x, double q_y) { 60 double a3_x, a3_y, a3_z, a2_x, a2_y, a1_x, a1_y; 61 double b3_x, b3_y, b3_z, b2_x, b2_y, b1_x, b1_y; 60 double b3_x, b3_y, b3_z, b1_x, b1_y; 62 61 double q_z; 63 double alpha, vol, cos_val_b3, cos_val_b2, cos_val_b1, cos_val_a3, cos_val_a2, cos_val_a1;62 double alpha, cos_val_b3, cos_val_b2, cos_val_b1; 64 63 double a1_dot_q, a2_dot_q,a3_dot_q; 65 64 double answer; 66 65 double Pi = 4.0*atan(1.0); 67 double aa, Da, qDa_2, latticeScale, Zq, Fkq, Fkq_2 ,contrast;66 double aa, Da, qDa_2, latticeScale, Zq, Fkq, Fkq_2; 68 67 69 68 double dp[5]; -
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. -
sansmodels/src/sans/models/c_extensions/rpa.c
r35aface r839f7e28 13 13 int lCASE = dp[0]; 14 14 15 double Na,Nb,Nc,Nd,Nab,Nac,Nad,Nb a,Nbc,Nbd,Nca,Ncb,Ncd;15 double Na,Nb,Nc,Nd,Nab,Nac,Nad,Nbc,Nbd,Ncd; 16 16 double Phia,Phib,Phic,Phid,Phiab,Phiac,Phiad; 17 double Phib a,Phibc,Phibd,Phica,Phicb,Phicd,Phida,Phidb,Phidc;18 double va,vb,vc,vd,vab,vac,vad,vb a,vbc,vbd,vca,vcb,vcd,vda,vdb,vdc;17 double Phibc,Phibd,Phicd; 18 double va,vb,vc,vd,vab,vac,vad,vbc,vbd,vcd; 19 19 double m; 20 20 double ba,bb,bc,bd; 21 21 double Xa,Xb,Xc,Xd; 22 22 double Paa,S0aa,Pab,S0ab,Pac,S0ac,Pad,S0ad; 23 double Pba,S0ba,Pbb,S0bb,Pbc,S0bc,Pbd,S0bd;24 double Pca,S0ca,Pcb,S0cb,Pcc,S0cc,Pcd,S0cd;25 double Pda,S0da,Pdb,S0db,Pdc,S0dc,Pdd,S0dd;23 double S0ba,Pbb,S0bb,Pbc,S0bc,Pbd,S0bd; 24 double S0ca,S0cb,Pcc,S0cc,Pcd,S0cd; 25 double S0da,S0db,S0dc,Pdd,S0dd; 26 26 double Kaa,Kab,Kac,Kad,Kba,Kbb,Kbc,Kbd; 27 27 double Kca,Kcb,Kcc,Kcd,Kda,Kdb,Kdc,Kdd; -
sansmodels/src/sans/models/c_extensions/spheresld.c
r3be94e8 r839f7e28 23 23 double nsl=npts;//21.0; //nsl = Num_sub_layer: MUST ODD number in double //no other number works now 24 24 int n_s; 25 int floor_nsl;26 25 27 26 double sld_i,sld_f,dz,bes,fun,f,vol,vol_pre,vol_sub,qr,r,contr,f2; 28 27 double sign,slope=0.0; 29 28 double pi; 30 double r0 = 0.0, thick_inter_f;31 29 32 30 int* fun_type; … … 36 34 double* fun_coef; 37 35 38 double total_thick ;36 double total_thick=0.0; 39 37 40 38 fun_type = (int*)malloc((n+2)*sizeof(int));
Note: See TracChangeset
for help on using the changeset viewer.