Skip to content

Commit

Permalink
refs #9455. Run jobs in parallel.
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenArnold committed May 14, 2014
1 parent eb592e4 commit 5ba3891
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Code/Mantid/Framework/Crystal/src/FindClusterFaces.cpp
Expand Up @@ -12,6 +12,7 @@ and the center locations are used to restrict the output to only include the clu
#include "MantidCrystal/FindClusterFaces.h"

#include "MantidKernel/Utils.h"
#include "MantidKernel/MultiThreaded.h"

#include "MantidAPI/FrameworkManager.h"
#include "MantidAPI/IMDIterator.h"
Expand Down Expand Up @@ -182,6 +183,8 @@ namespace Mantid
auto mdIterators = clusterImage->createIterators(nThreads); // Iterators
const int nIterators = static_cast<int>(mdIterators.size()); // Number of iterators yielded.
VecClusterFaces clusterFaces(nIterators);

PARALLEL_FOR_NO_WSP_CHECK()
for(int it = 0; it < nIterators; ++it)
{
ClusterFaces& localClusterFaces = clusterFaces[it];
Expand Down

0 comments on commit 5ba3891

Please sign in to comment.