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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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. 
Note: See TracChangeset for help on using the changeset viewer.