Commit 976a4f02 authored by Yury Hayeu's avatar Yury Hayeu Committed by Tomáš Oberhuber
Browse files

Fix building of the grid

parent 9d143af7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ class Grid {
   public:
      __cuda_callable__ inline
      Entity<Size, Index, Real> getEntity(Index i, Index j) const {
         Entity<Size, Index, Real> entity;
         Entity<Size, Index, Real> entity(*this);

         entity.i = i;
         entity.j = j;
@@ -49,7 +49,7 @@ template<int Size, typename Index, typename Real>
class Entity {
   public:
      __cuda_callable__ inline
      Entity() {};
      Entity(const Grid<Size, Index, Real>& grid): grid(grid) {};

      const Grid<Size, Index, Real>& grid;

+0 −8
Original line number Diff line number Diff line
@@ -38,14 +38,6 @@ class Grid<2, Real, Device, Index> : public NDimGrid<2, Real, Device, Index> {
   template <typename Entity>
   __cuda_callable__ inline Index getEntityIndex(const Entity& entity) const;

   /**
    * @brief Gets entity index using entity type.
    * \param entity Type of entity.
    * \tparam Entity Type of the entity.
    */
   template <typename Entity>
   __cuda_callable__ inline Index getEntityIndex(const Entity& entity) const;

   /**
    * @brief Traverser all elements in rect
    */