Changeset 74c9a30 in sasview for sansmodels


Ignore:
Timestamp:
Dec 12, 2011 12:07:43 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:
36f482f3
Parents:
ef7606b
Message:

Re #4 Fix a bunch of model warnings

Location:
sansmodels/src/sans/models
Files:
6 edited

Legend:

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

    r4628e31 r74c9a30  
    8989double ellipsoid_analytical_2D_scaled(EllipsoidParameters *pars, double q, double q_x, double q_y) { 
    9090        double cyl_x, cyl_y, cyl_z; 
    91         double q_z, lenq; 
    92         double alpha, f, vol, sin_val, cos_val; 
     91        double q_z; 
     92        double alpha, vol, cos_val; 
    9393        double answer; 
    9494        //convert angle degree to radian 
  • sansmodels/src/sans/models/c_extensions/parallelepiped.c

    r890ac7f1 r74c9a30  
    9999 */ 
    100100double parallelepiped_analytical_2D_scaled(ParallelepipedParameters *pars, double q, double q_x, double q_y) { 
    101         double cparallel_x, cparallel_y, cparallel_z, bparallel_x, bparallel_y, parallel_x, parallel_y, parallel_z; 
     101        double cparallel_x, cparallel_y, cparallel_z, bparallel_x, bparallel_y, parallel_x, parallel_y; 
    102102        double q_z; 
    103103        double alpha, vol, cos_val_c, cos_val_b, cos_val_a, edgeA, edgeB, edgeC; 
  • sansmodels/src/sans/models/c_models/SquareWell.cpp

    r6110bb8 r74c9a30  
    6666 
    6767        // Loop over radius weight points 
    68         for(int i=0; i<weights_rad.size(); i++) { 
     68        for(size_t i=0; i<weights_rad.size(); i++) { 
    6969                dp[0] = weights_rad[i].value; 
    7070 
  • sansmodels/src/sans/models/c_models/StickyHS.cpp

    r6110bb8 r74c9a30  
    6868 
    6969        // Loop over radius weight points 
    70         for(int i=0; i<weights_rad.size(); i++) { 
     70        for(size_t i=0; i<weights_rad.size(); i++) { 
    7171                dp[0] = weights_rad[i].value; 
    7272 
  • sansmodels/src/sans/models/c_smearer/smearer2d_helper.cpp

    r87615a48 r74c9a30  
    4646        double rbin_size = rlimit / double(nrbins); 
    4747        double phibin_size = 0.0; 
    48         int tot_nbins = nrbins * nphibins; 
    4948        double rbin = 0.0; 
    5049        double phibin = 0.0; 
  • sansmodels/src/sans/models/c_smearer/smearer2d_helper_module.cpp

    r8dbc4e5 r74c9a30  
    11/** 
    2  * Smearer module to perform point and slit smearing calculations 
     2  Smearer module to perform point and slit smearing calculations 
    33 
    44        This software was developed by the University of Tennessee as part of the 
     
    3939} 
    4040 
    41 /** 
    4241/** 
    4342 * Create a QSmearer as a python object by supplying a q array 
Note: See TracChangeset for help on using the changeset viewer.