diff --git a/Framework/Algorithms/src/Integration.cpp b/Framework/Algorithms/src/Integration.cpp index 9afa69e5cbdd96445fca3d282e2af84b1105ac9b..f02571f5b111892e30d146dc9eefd50fd2cc27bd 100644 --- a/Framework/Algorithms/src/Integration.cpp +++ b/Framework/Algorithms/src/Integration.cpp @@ -150,13 +150,12 @@ void Integration::exec() { } // Create the 2D workspace (with 1 bin) for the output - MatrixWorkspace_sptr outputWorkspace = - API::WorkspaceFactory::Instance().create(localworkspace, - maxWsIndex - minWsIndex + 1, - 2, 1); - auto rebinned_input = + MatrixWorkspace_sptr outputWorkspace = + API::WorkspaceFactory::Instance().create( + localworkspace, maxWsIndex - minWsIndex + 1, 2, 1); + auto rebinned_input = boost::dynamic_pointer_cast<const RebinnedOutput>(localworkspace); - auto rebinned_output = + auto rebinned_output = boost::dynamic_pointer_cast<RebinnedOutput>(outputWorkspace); bool is_distrib = outputWorkspace->isDistribution(); diff --git a/Framework/DataObjects/src/RebinnedOutput.cpp b/Framework/DataObjects/src/RebinnedOutput.cpp index 5161541d44b8879c48d82a61c77744b7c8ad7c27..b6db009434822dcd5e35165121fcbc499d72bfe5 100644 --- a/Framework/DataObjects/src/RebinnedOutput.cpp +++ b/Framework/DataObjects/src/RebinnedOutput.cpp @@ -142,8 +142,8 @@ void RebinnedOutput::finalize(bool hasSqrdErrs) { } /** - * This function "unfinalizes" the workspace by taking the data/error arrays - * and multiplying them by the corresponding fractional area array. + * This function "unfinalizes" the workspace by taking the data/error arrays + * and multiplying them by the corresponding fractional area array. * @param hasSqrdErrs :: does the workspace have squared errors? */ void RebinnedOutput::unfinalize(bool hasSqrdErrs) {