diff --git a/Sim/Simulation/ISimulation.h b/Sim/Simulation/ISimulation.h index eada5e6032f3c577d487cd69347a97174065f314..f7ac8572b352cb251ed8c029db215a6d48cd698b 100644 --- a/Sim/Simulation/ISimulation.h +++ b/Sim/Simulation/ISimulation.h @@ -122,7 +122,7 @@ private: virtual size_t numberOfElements() const = 0; //! Returns the number of output channels to be computed. Determines size of m_cache. - virtual size_t nOutChannels() const = 0; + virtual size_t nOutChannels() const { return numberOfElements(); } //! Returns simulation result, based on intensity held in elements vector. virtual SimulationResult packResult() = 0; diff --git a/Sim/Simulation/OffspecSimulation.h b/Sim/Simulation/OffspecSimulation.h index ca62a55f02f0aea97285486cf6f90fbb5fe86060..cb4525e9f6c505056518e36180c2443ba5f3cb33 100644 --- a/Sim/Simulation/OffspecSimulation.h +++ b/Sim/Simulation/OffspecSimulation.h @@ -89,11 +89,6 @@ private: size_t numberOfElements() const override; - size_t nOutChannels() const override - { - return numberOfElements(); - } - SimulationResult packResult() override; //! Checks the distribution validity for simulation. diff --git a/Sim/Simulation/ScatteringSimulation.h b/Sim/Simulation/ScatteringSimulation.h index bcdb4cb74c1521959ca343e31feb2736fefa28ae..23405ddbf06220cd275e1e7cd5997fcadb037586 100644 --- a/Sim/Simulation/ScatteringSimulation.h +++ b/Sim/Simulation/ScatteringSimulation.h @@ -94,11 +94,6 @@ private: //! Returns the number of elements this simulation needs to calculate size_t numberOfElements() const override; - size_t nOutChannels() const override - { - return numberOfElements(); - } - SimulationResult packResult() override; //... Local function: diff --git a/Sim/Simulation/SpecularSimulation.h b/Sim/Simulation/SpecularSimulation.h index 328ae45c6573486b87b08148e6a38a6f27575616..bb375cd2b9155b03006b485b54f00be0393dadb4 100644 --- a/Sim/Simulation/SpecularSimulation.h +++ b/Sim/Simulation/SpecularSimulation.h @@ -64,11 +64,6 @@ private: //! Returns the number of elements this simulation needs to calculate size_t numberOfElements() const override; - size_t nOutChannels() const override - { - return numberOfElements(); - } - SimulationResult packResult() override; //! Checks the distribution validity for simulation.