Changeset 0b082f3 in sasview for sansmodels/src/sans/models/c_models/CVesicleModel.cpp
- Timestamp:
- Dec 8, 2011 4:50:20 PM (13 years ago)
- 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:
- 01de557
- Parents:
- 0438933
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/c_models/CVesicleModel.cpp
r2605da22 r0b082f3 169 169 return NULL; 170 170 } 171 #pragma omp parallel for 171 172 for (int i = 0; i < q->dimensions[0]; i++){ 172 173 double q_value = *(double *)(q->data + i*q->strides[0]); … … 186 187 { 187 188 PyArrayObject *result; 188 int i,x_len, y_len, dims[1];189 int x_len, y_len, dims[1]; 189 190 //check validity of input vectors 190 191 if (x->nd != 1 || x->descr->type_num != PyArray_DOUBLE … … 210 211 211 212 /* Do the calculation. */ 212 for ( i=0; i< x_len; i++) { 213 #pragma omp parallel for 214 for (int i=0; i< x_len; i++) { 213 215 double x_value = *(double *)(x->data + i*x->strides[0]); 214 216 double y_value = *(double *)(y->data + i*y->strides[0]);
Note: See TracChangeset
for help on using the changeset viewer.