Changeset 3c07598 in sasview
- Timestamp:
- Jan 19, 2012 9:09:19 AM (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:
- 33477fd
- Parents:
- 602645d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/c_smearer/smearer2d_helper.cpp
r4e65505 r3c07598 15 15 #include <stdio.h> 16 16 #include <math.h> 17 //#include <omp.h> 17 18 using namespace std; 18 19 … … 51 52 double qphi = 0.0; 52 53 double Pi = 4.0*atan(1.0); 54 53 55 // Loop over q-values and multiply apply matrix 54 #pragma omp parallel for55 56 for(int i=0; i<nrbins; i++){ 56 57 rbin = rbin_size * (double(i) + 0.5); … … 58 59 phibin_size = 2.0 * Pi / double(nphibins); 59 60 phibin = phibin_size * (double(j)); 61 #pragma omp for 60 62 for(int q_i=0; q_i<npoints; q_i++){ 61 63 qr = sqrt(qx_values[q_i]*qx_values[q_i] + qy_values[q_i]*qy_values[q_i]);
Note: See TracChangeset
for help on using the changeset viewer.