Changeset 8dbc4e5 in sasview for sansmodels/src


Ignore:
Timestamp:
Jun 9, 2011 12:16:24 PM (13 years ago)
Author:
Jae Cho <jhjcho@…>
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:
3dee08e
Parents:
5d2b35a
Message:

a fix on Mc c-compile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansmodels/src/sans/models/c_smearer/smearer2d_helper_module.cpp

    r5d2b35a r8dbc4e5  
    4848        PyObject *dqx_values_obj; 
    4949        PyObject *dqy_values_obj; 
    50         //Py_ssize_t n_q; 
     50        Py_ssize_t n_q; 
    5151        //PyObject rlimit_obj; 
    5252        //PyObject npoints_obj; 
     
    6464 
    6565        if (!PyArg_ParseTuple(args, "OOOOdiii", &qx_values_obj, &qy_values_obj, &dqx_values_obj, &dqy_values_obj, &rlimit, &nrbins, &nphibins, &npoints)) return NULL; 
    66         OUTVECTOR(qx_values_obj, qx_values, npoints); 
    67         OUTVECTOR(qy_values_obj, qy_values, npoints); 
    68         OUTVECTOR(dqx_values_obj, dqx_values, npoints); 
    69         OUTVECTOR(dqy_values_obj, dqy_values, npoints); 
     66        OUTVECTOR(qx_values_obj, qx_values, n_q); 
     67        OUTVECTOR(qy_values_obj, qy_values, n_q); 
     68        OUTVECTOR(dqx_values_obj, dqx_values, n_q); 
     69        OUTVECTOR(dqy_values_obj, dqy_values, n_q); 
    7070        Smearer_helper* smearer2d_helper = new Smearer_helper(npoints,qx_values,qy_values,dqx_values,dqy_values, rlimit, nrbins, nphibins); 
    7171        return PyCObject_FromVoidPtr(smearer2d_helper, del_smearer2d_helper); 
Note: See TracChangeset for help on using the changeset viewer.