Commit b8f20bba authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Adding tnlOperator.

parent 35aee6d8
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -26,6 +26,13 @@
 * The main role of this type is that the mesh function evaluator
 * evaluates this function only on the INTERIOR mesh entities.
 */

/*template< typename Operator,
          typename MeshFunction,
          typename BoundaryConditions = void,
          bool StorageFlag = true >
class tnlOperatorFunction{};*/

template< typename Operator,
          typename MeshFunction >
class tnlOperatorFunction : public tnlDomain< Operator::getDimensions(), Operator::getDomainType() >
+43 −0
Original line number Diff line number Diff line
/***************************************************************************
                          tnlOperator.h  -  description
                             -------------------
    begin                : Feb 10, 2016
    copyright            : (C) 2016 by Tomas Oberhuber
    email                : tomas.oberhuber@fjfi.cvut.cz
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/


#ifndef TNLOPERATOR_H
#define	TNLOPERATOR_H

template< typename Mesh,
          tnlDomainType DomainType = MeshInteriorDomain,
          int DomainEntytiesDimensions = Mesh::getDimensionsCount(),
          int ImageEntytiesDimensions = Mesh::getDimensionsCount()
          typename Real = typename Mesh::RealType,
          typename Index = typename Mesh::IndexType >
class tnlOperator : public tnlDomain< Mesh::getDimensionsCount(), DomainType >
{
   public:
      
      typedef Mesh MeshType;
      typedef typename MeshType::RealType RealType;
      typedef typename MeshType::DeviceType DeviceType;
      typedef typename MeshType::IndexType IndexType;
      
      constexpr static int getDomainEntitiesDimensions() { return DomainEntitiesDimensions; }
      constexpr static int getImageEntitiesDimensions() { return ImageEntitiesDimensions; }
      
      void refresh() {}
};
#endif	/* TNLOPERATOR_H */