Skip to content

Commit

Permalink
refs #7282. Comply with OpenMP restriction on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenArnold committed Jun 11, 2013
1 parent 3767e38 commit f576c82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Code/Mantid/Framework/MDAlgorithms/src/ThresholdMD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ namespace Mantid
outWS = boost::dynamic_pointer_cast<IMDHistoWorkspace>(temp);
}

const uint64_t nPoints = inputWS->getNPoints();
const int64_t nPoints = inputWS->getNPoints();

boost::function<bool(double)> comparitor = boost::bind(std::less<double>(),_1, referenceValue);
if(condition == GreaterThan())
Expand All @@ -141,14 +141,14 @@ namespace Mantid
}

Progress prog(this, 0, 1, 100);
uint64_t frequency = nPoints;
int64_t frequency = nPoints;
if(nPoints > 100)
{
frequency = nPoints/100;
}

PARALLEL_FOR2(inputWS, outWS)
for(uint64_t i = 0; i < nPoints; ++i)
for(int64_t i = 0; i < nPoints; ++i)
{
PARALLEL_START_INTERUPT_REGION
const double signalAt = inputWS->getSignalAt(i);
Expand Down

0 comments on commit f576c82

Please sign in to comment.