Ignore:
Timestamp:
Dec 7, 2011 4:40:16 PM (13 years ago)
Author:
Mathieu Doucet <doucetm@…>
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
Message:

Re #4 A few more warnings

Location:
sansmodels/src/sans/models/c_extensions
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sansmodels/src/sans/models/c_extensions/fcc.c

    r890ac7f1 r839f7e28  
    5858 */ 
    5959double 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; 
    6261        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; 
    6463        double a1_dot_q, a2_dot_q,a3_dot_q; 
    6564        double answer; 
    6665        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; 
    6867 
    6968        double dp[5]; 
  • sansmodels/src/sans/models/c_extensions/refl.c

    r3be94e8 r839f7e28  
    2323        double background = dp[6]; 
    2424 
    25   double total_thick; 
     25  double total_thick=0.0; 
    2626  double nsl=21.0; //nsl = Num_sub_layer: 
    2727  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; 
    3030  double pi; 
    3131 
     
    3434  double* thick; 
    3535  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; 
    3737 
    3838  sld = (double*)malloc((n+2)*sizeof(double)); 
     
    5858 
    5959        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); 
    6362 
    6463        //Checking if floor is available. 
  • sansmodels/src/sans/models/c_extensions/rpa.c

    r35aface r839f7e28  
    1313        int lCASE = dp[0]; 
    1414 
    15         double Na,Nb,Nc,Nd,Nab,Nac,Nad,Nba,Nbc,Nbd,Nca,Ncb,Ncd; 
     15        double Na,Nb,Nc,Nd,Nab,Nac,Nad,Nbc,Nbd,Ncd; 
    1616        double Phia,Phib,Phic,Phid,Phiab,Phiac,Phiad; 
    17         double Phiba,Phibc,Phibd,Phica,Phicb,Phicd,Phida,Phidb,Phidc; 
    18         double va,vb,vc,vd,vab,vac,vad,vba,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; 
    1919        double m; 
    2020        double ba,bb,bc,bd; 
    2121        double Xa,Xb,Xc,Xd; 
    2222        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; 
    2626        double Kaa,Kab,Kac,Kad,Kba,Kbb,Kbc,Kbd; 
    2727        double Kca,Kcb,Kcc,Kcd,Kda,Kdb,Kdc,Kdd; 
  • sansmodels/src/sans/models/c_extensions/spheresld.c

    r3be94e8 r839f7e28  
    2323  double nsl=npts;//21.0; //nsl = Num_sub_layer:  MUST ODD number in double //no other number works now 
    2424  int n_s; 
    25   int floor_nsl; 
    2625 
    2726  double sld_i,sld_f,dz,bes,fun,f,vol,vol_pre,vol_sub,qr,r,contr,f2; 
    2827  double sign,slope=0.0; 
    2928  double pi; 
    30   double r0 = 0.0, thick_inter_f; 
    3129 
    3230  int* fun_type; 
     
    3634  double* fun_coef; 
    3735 
    38         double total_thick; 
     36        double total_thick=0.0; 
    3937 
    4038        fun_type = (int*)malloc((n+2)*sizeof(int)); 
Note: See TracChangeset for help on using the changeset viewer.