From 2c3479e77988a6d32149dbd9dcc836ade9d87253 Mon Sep 17 00:00:00 2001 From: Mathieu Doucet <doucetm@ornl.gov> Date: Wed, 27 Jul 2011 22:03:44 +0000 Subject: [PATCH] Fixes #3435 --- .../Framework/Algorithms/src/BinaryOperation.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Code/Mantid/Framework/Algorithms/src/BinaryOperation.cpp b/Code/Mantid/Framework/Algorithms/src/BinaryOperation.cpp index 42ab9e2ddba..10d66ab2206 100644 --- a/Code/Mantid/Framework/Algorithms/src/BinaryOperation.cpp +++ b/Code/Mantid/Framework/Algorithms/src/BinaryOperation.cpp @@ -359,14 +359,7 @@ namespace Mantid //Zero the output data and ensure that the output spectra is masked. The masking is done outside of this //loop modiying the parameter map in a multithreaded loop requires too much locking m_indicesToMask.push_back(index); - MantidVec & yValues = out->dataY(index); - MantidVec & eValues = out->dataE(index); - MantidVec::const_iterator yend = yValues.end(); - for( MantidVec::iterator yit(yValues.begin()), eit(eValues.begin()); yit != yend; ++yit, ++eit) - { - (*yit) = 0.0; - (*eit) = 0.0; - } + out->maskWorkspaceIndex(index); } return continueOp; } @@ -440,7 +433,6 @@ namespace Mantid // Now loop over the spectra of the left hand side pulling m_out the single value from each m_rhs 'spectrum' // and then calling the virtual function const int64_t numHists = m_lhs->getNumberHistograms(); - if (m_eout) { // ---- The output is an EventWorkspace ------ -- GitLab