Changeset 0e8b249 in sasview for pr_inversion/src


Ignore:
Timestamp:
Dec 9, 2011 5:08:35 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:
2e2452b
Parents:
ab87b61
Message:

Re #4 Fix warnings in pr

Location:
pr_inversion/src/sans/pr/c_extensions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pr_inversion/src/sans/pr/c_extensions/Cinvertor.c

    rea59943 r0e8b249  
    505505        double *pars; 
    506506        PyObject* residuals; 
    507         PyObject* temp; 
    508         double *res; 
    509507        int i; 
    510508        double residual, diff; 
     
    562560        double *pars; 
    563561        PyObject* residuals; 
    564         PyObject* temp; 
    565         double *res; 
    566562        int i; 
    567563        double residual, diff; 
     
    696692        PyObject *err_obj; 
    697693        Py_ssize_t npars2; 
    698         int i; 
    699694 
    700695        if (!PyArg_ParseTuple(args, "OOd", &data_obj, &err_obj, &r)) return NULL; 
     
    821816static PyObject * get_rg(Cinvertor *self, PyObject *args) { 
    822817        double *pars; 
    823         double *pars_err; 
    824818        PyObject *data_obj; 
    825819        Py_ssize_t npars; 
    826         Py_ssize_t npars2; 
    827820        double value; 
    828821 
     
    843836static PyObject * get_iq0(Cinvertor *self, PyObject *args) { 
    844837        double *pars; 
    845         double *pars_err; 
    846838        PyObject *data_obj; 
    847839        Py_ssize_t npars; 
    848         Py_ssize_t npars2; 
    849840        double value; 
    850841 
  • pr_inversion/src/sans/pr/c_extensions/invertor.c

    rc04cbd7 r0e8b249  
    6262 */ 
    6363double ortho_transformed_smeared(double d_max, int n, double height, double width, double q, int npts) { 
    64         double sum, value, y, z; 
     64        double sum, y, z; 
    6565        int i, j, n_height, n_width; 
    6666        double count_w; 
     
    277277double positive_errors(double *pars, double *err, double d_max, int n_c, int nslice) { 
    278278    double r; 
    279     double value; 
    280279        int i; 
    281280        double sum_pos = 0.0; 
Note: See TracChangeset for help on using the changeset viewer.