Commit bd1d51b3 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Removed Object from classes which don't really need it

parent f354eea7
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -23,7 +23,6 @@ template< typename Value,
          typename Index = int,
          typename Communicator = Communicators::MpiCommunicator >
class DistributedArray
: public Object
{
   using CommunicationGroup = typename Communicator::CommunicationGroup;
public:
@@ -145,11 +144,6 @@ protected:
   IndexType globalSize = 0;
   CommunicationGroup group = Communicator::NullGroup;
   LocalArrayType localData;

private:
   // TODO: disabled until they are implemented
   using Object::save;
   using Object::load;
};

} // namespace Containers
+0 −6
Original line number Diff line number Diff line
@@ -44,7 +44,6 @@ struct has_communicator< T, typename enable_if_type< typename T::CommunicatorTyp
template< typename Matrix,
          typename Communicator = Communicators::MpiCommunicator >
class DistributedMatrix
: public Object
{
   using CommunicationGroup = typename Communicator::CommunicationGroup;
public:
@@ -172,11 +171,6 @@ protected:
   Matrix localMatrix;

   DistributedSpMV< Matrix, Communicator > spmv;

private:
   // TODO: disabled until they are implemented
   using Object::save;
   using Object::load;
};

} // namespace Matrices
+0 −1
Original line number Diff line number Diff line
@@ -12,7 +12,6 @@

#include <iomanip>
#include <TNL/Experimental/Arithmetics/FlopsCounter.h>
#include <TNL/Object.h>
#include <TNL/Solvers/IterativeSolverMonitor.h>
#include <TNL/Solvers/IterativeSolver.h>
#include <TNL/Config/ConfigDescription.h>
+1 −2
Original line number Diff line number Diff line
@@ -10,7 +10,6 @@

#pragma once

#include <TNL/Object.h>
#include <TNL/Timer.h>
#include <TNL/Logger.h>
#include <TNL/Config/ConfigDescription.h>
@@ -23,7 +22,7 @@ namespace PDE {
   
template< typename Real,
          typename Index >
class PDESolver : public Object
class PDESolver
{
   public:
      using RealType = Real;
+1 −4
Original line number Diff line number Diff line
@@ -17,13 +17,12 @@

#pragma once

#include <TNL/Object.h>
#include <TNL/Logger.h>
#include <TNL/Config/ConfigDescription.h>
#include <TNL/Config/ParameterContainer.h>
#include <TNL/Solvers/PDE/PDESolver.h>
#include <TNL/Problems/CommonData.h>

#include <TNL/Pointers/SharedPointer.h>

namespace TNL {
namespace Solvers {
@@ -78,10 +77,8 @@ class TimeIndependentPDESolver : public PDESolver< typename Problem::RealType,
      ProblemType* problem;
};


} // namespace PDE
} // namespace Solvers
} // namespace TNL

#include <TNL/Solvers/PDE/TimeIndependentPDESolver_impl.h>
Loading