Skip to content

Commit

Permalink
Refs #12585 turn on OpenMPI
Browse files Browse the repository at this point in the history
  • Loading branch information
VickieLynch committed Jun 30, 2016
1 parent 68e19ed commit c205a6c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Framework/MDAlgorithms/src/IntegratePeaksMDHKL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ void IntegratePeaksMDHKL::exec() {
int npeaks = peakWS->getNumberPeaks();

auto prog = make_unique<Progress>(this, 0.3, 1.0, npeaks);
//PARALLEL_FOR1(peakWS)
PARALLEL_FOR1(peakWS)
for (int i = 0; i < npeaks; i++) {
//PARALLEL_START_INTERUPT_REGION
PARALLEL_START_INTERUPT_REGION

IPeak &p = peakWS->getPeak(i);
// round to integer
Expand All @@ -131,9 +131,9 @@ void IntegratePeaksMDHKL::exec() {
p.setIntensity(intensity);
p.setSigmaIntensity(sqrt(errorSquared));
prog->report();
//PARALLEL_END_INTERUPT_REGION
PARALLEL_END_INTERUPT_REGION
}
//PARALLEL_CHECK_INTERUPT_REGION
PARALLEL_CHECK_INTERUPT_REGION
// Save the output
setProperty("OutputWorkspace", peakWS);
}
Expand Down Expand Up @@ -174,7 +174,7 @@ MDHistoWorkspace_sptr IntegratePeaksMDHKL::normalize(
}

void IntegratePeaksMDHKL::integratePeak(const int neighborPts, MDHistoWorkspace_sptr out, double& intensity, double& errorSquared) {
AnalysisDataService::Instance().addOrReplace("box", out);
//AnalysisDataService::Instance().addOrReplace("box", out);
std::vector<int> gridPts;
const size_t dimensionality = out->getNumDims();
for (size_t i = 0; i < dimensionality; ++i) {
Expand Down

0 comments on commit c205a6c

Please sign in to comment.