Skip to content

Commit

Permalink
refs #5985. Process in parallel.
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenArnold committed Oct 22, 2012
1 parent 0523d0f commit 9880fca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Code/Mantid/Framework/Algorithms/src/RebinByPulseTimes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,10 @@ namespace Algorithms
WorkspaceFactory::Instance().initializeFromParent(inWS, outputWS, true);

//Go through all the histograms and set the data
//PARALLEL_FOR2(inWS, outputWS)
PARALLEL_FOR2(inWS, outputWS)
for (int i=0; i < histnumber; ++i)
{
//PARALLEL_START_INTERUPT_REGION
PARALLEL_START_INTERUPT_REGION

const IEventList* el = inWS->getEventListPtr(i);
MantidVec y_data, e_data;
Expand All @@ -180,9 +180,9 @@ namespace Algorithms

//Report progress
prog.report(name());
//PARALLEL_END_INTERUPT_REGION
PARALLEL_END_INTERUPT_REGION
}
//PARALLEL_CHECK_INTERUPT_REGION
PARALLEL_CHECK_INTERUPT_REGION

//Copy all the axes
for (int i=1; i<inWS->axes(); i++)
Expand Down

0 comments on commit 9880fca

Please sign in to comment.