Skip to content

Commit

Permalink
Refs #11390 Fix hang in Stitch1DMany
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Jeffery committed Mar 19, 2015
1 parent 0998a85 commit 247e78d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Code/Mantid/Framework/Algorithms/src/Stitch1DMany.cpp
Expand Up @@ -221,9 +221,9 @@ void Stitch1DMany::exec() {
outName += wsName;
}

IAlgorithm_sptr stitchAlg =
AlgorithmManager::Instance().create("Stitch1DMany");
IAlgorithm_sptr stitchAlg = createChildAlgorithm("Stitch1DMany");
stitchAlg->initialize();
stitchAlg->setAlwaysStoreInADS(true);
stitchAlg->setProperty("InputWorkspaces", toProcess);
stitchAlg->setProperty("OutputWorkspace", outName);
stitchAlg->setProperty("StartOverlaps", m_startOverlaps);
Expand All @@ -247,9 +247,9 @@ void Stitch1DMany::exec() {

const std::string groupName = this->getProperty("OutputWorkspace");

IAlgorithm_sptr groupAlg =
AlgorithmManager::Instance().create("GroupWorkspaces");
IAlgorithm_sptr groupAlg = createChildAlgorithm("GroupWorkspaces");
groupAlg->initialize();
groupAlg->setAlwaysStoreInADS(true);
groupAlg->setProperty("InputWorkspaces", toGroup);
groupAlg->setProperty("OutputWorkspace", groupName);
groupAlg->execute();
Expand Down

0 comments on commit 247e78d

Please sign in to comment.