From 749e67b73fc2dafdba315c432195d84e73befced Mon Sep 17 00:00:00 2001
From: Simon Heybrock <simon.heybrock@esss.se>
Date: Fri, 17 Nov 2017 15:23:35 +0100
Subject: [PATCH] Re #21181. Non-distributed MPI support for
 CalculateFlatBackground.

---
 .../inc/MantidAlgorithms/CalculateFlatBackground.h   | 12 ++----------
 docs/source/development/AlgorithmMPISupport.rst      |  1 +
 2 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/Framework/Algorithms/inc/MantidAlgorithms/CalculateFlatBackground.h b/Framework/Algorithms/inc/MantidAlgorithms/CalculateFlatBackground.h
index eb51ac7d5d9..c315e55a0d1 100644
--- a/Framework/Algorithms/inc/MantidAlgorithms/CalculateFlatBackground.h
+++ b/Framework/Algorithms/inc/MantidAlgorithms/CalculateFlatBackground.h
@@ -1,10 +1,7 @@
 #ifndef MANTID_ALGORITHMS_CALCULATEFLATBACKGROUND_H_
 #define MANTID_ALGORITHMS_CALCULATEFLATBACKGROUND_H_
 
-//----------------------------------------------------------------------
-// Includes
-//----------------------------------------------------------------------
-#include "MantidAPI/Algorithm.h"
+#include "MantidAPI/ParallelAlgorithm.h"
 
 namespace Mantid {
 namespace HistogramData {
@@ -53,13 +50,8 @@ namespace Algorithms {
     File change history is stored at: <https://github.com/mantidproject/mantid>
     Code Documentation is available at: <http://doxygen.mantidproject.org>
 */
-class DLLExport CalculateFlatBackground : public API::Algorithm {
+class DLLExport CalculateFlatBackground : public API::ParallelAlgorithm {
 public:
-  /// (Empty) Constructor
-  CalculateFlatBackground() : API::Algorithm() {}
-  /// Virtual destructor
-  ~CalculateFlatBackground() = default;
-
   /// Algorithm's name
   const std::string name() const override { return "CalculateFlatBackground"; }
   /// Summary of algorithms purpose
diff --git a/docs/source/development/AlgorithmMPISupport.rst b/docs/source/development/AlgorithmMPISupport.rst
index c20278c309e..3aabbe799e4 100644
--- a/docs/source/development/AlgorithmMPISupport.rst
+++ b/docs/source/development/AlgorithmMPISupport.rst
@@ -457,6 +457,7 @@ Algorithm                         Supported modes         Comments
 BinaryOperation                   all                     not supported if ``AllowDifferentNumberSpectra`` is enabled
 CalculateChiSquared               MasterOnly, Identical   see ``IFittingAlgorithm``
 CalculateCostFunction             MasterOnly, Identical   see ``IFittingAlgorithm``
+CalculateFlatBackground           MasterOnly, Identical
 CalculateTransmission             MasterOnly, Identical
 CloneWorkspace                    all
 CompressEvents                    all
-- 
GitLab