Changeset 3c07598 in sasview


Ignore:
Timestamp:
Jan 19, 2012 9:09:19 AM (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:
33477fd
Parents:
602645d
Message:

fixed omp problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansmodels/src/c_smearer/smearer2d_helper.cpp

    r4e65505 r3c07598  
    1515#include <stdio.h> 
    1616#include <math.h> 
     17//#include <omp.h> 
    1718using namespace std; 
    1819 
     
    5152        double qphi = 0.0; 
    5253        double Pi = 4.0*atan(1.0); 
     54         
    5355        // Loop over q-values and multiply apply matrix 
    54 #pragma omp parallel for 
    5556        for(int i=0; i<nrbins; i++){ 
    5657                rbin = rbin_size * (double(i) + 0.5); 
     
    5859                        phibin_size =  2.0 * Pi / double(nphibins); 
    5960                        phibin = phibin_size * (double(j)); 
     61                        #pragma omp for 
    6062                        for(int q_i=0; q_i<npoints; q_i++){ 
    6163                                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.