Skip to content
Snippets Groups Projects
Commit c0efc1b3 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Removed useless ViewTypeGetter trait type

parent 4292c7f2
No related branches found
No related tags found
No related merge requests found
...@@ -681,12 +681,6 @@ File& operator>>( File&& file, Array< Value, Device, Index, Allocator >& array ) ...@@ -681,12 +681,6 @@ File& operator>>( File&& file, Array< Value, Device, Index, Allocator >& array )
} // namespace Containers } // namespace Containers
template< typename Value, typename Device, typename Index >
struct ViewTypeGetter< Containers::Array< Value, Device, Index > >
{
using Type = Containers::ArrayView< Value, Device, Index >;
};
template< typename Value_, typename Device, typename Index > template< typename Value_, typename Device, typename Index >
struct IsStatic< Containers::Array< Value_, Device, Index > > struct IsStatic< Containers::Array< Value_, Device, Index > >
{ {
......
...@@ -258,12 +258,6 @@ public: ...@@ -258,12 +258,6 @@ public:
} // namespace Containers } // namespace Containers
template< typename Real, typename Device, typename Index >
struct ViewTypeGetter< Containers::Vector< Real, Device, Index > >
{
using Type = Containers::VectorView< Real, Device, Index >;
};
template< typename Real, typename Device, typename Index > template< typename Real, typename Device, typename Index >
struct IsStatic< Containers::Vector< Real, Device, Index > > struct IsStatic< Containers::Vector< Real, Device, Index > >
{ {
......
...@@ -32,7 +32,6 @@ class Euler : public ExplicitSolver< Problem, SolverMonitor > ...@@ -32,7 +32,6 @@ class Euler : public ExplicitSolver< Problem, SolverMonitor >
using RealType = typename ProblemType::RealType; using RealType = typename ProblemType::RealType;
using DeviceType = typename ProblemType::DeviceType; using DeviceType = typename ProblemType::DeviceType;
using IndexType = typename ProblemType::IndexType; using IndexType = typename ProblemType::IndexType;
using DofVectorView = typename ViewTypeGetter< DofVectorType >::Type;
using DofVectorPointer = Pointers::SharedPointer< DofVectorType, DeviceType >; using DofVectorPointer = Pointers::SharedPointer< DofVectorType, DeviceType >;
using SolverMonitorType = SolverMonitor; using SolverMonitorType = SolverMonitor;
......
...@@ -79,8 +79,8 @@ bool Euler< Problem, SolverMonitor > :: solve( DofVectorPointer& _u ) ...@@ -79,8 +79,8 @@ bool Euler< Problem, SolverMonitor > :: solve( DofVectorPointer& _u )
*/ */
//timer.start(); //timer.start();
_k1->setLike( *_u ); _k1->setLike( *_u );
DofVectorView k1 = _k1->getView(); auto k1 = _k1->getView();
DofVectorView u = _u->getView(); auto u = _u->getView();
k1 = 0.0; k1 = 0.0;
......
...@@ -9,17 +9,11 @@ ...@@ -9,17 +9,11 @@
/* See Copyright Notice in tnl/Copyright */ /* See Copyright Notice in tnl/Copyright */
#pragma once #pragma once
#include <type_traits> #include <type_traits>
namespace TNL { namespace TNL {
// TODO: remove - not used anywhere
template< typename T >
struct ViewTypeGetter
{
using Type = T;
};
template< typename T > template< typename T >
struct IsStatic struct IsStatic
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment