Commit 271ca348 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Grids: added public getters for numberOfNxFaces and numberOfNxAndNyFaces

parent 604ad172
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -161,6 +161,12 @@ class Grid< 2, Real, Device, Index > : public Object
   __cuda_callable__
   const RealType& getSpaceStepsProducts() const;

   /**
    * \brief Returns the number of x-normal faces.
    */
   __cuda_callable__
   IndexType getNumberOfNxFaces() const;

   /**
    * \breif Returns the measure (area) of a cell in this grid.
    */
+11 −0
Original line number Diff line number Diff line
@@ -328,6 +328,17 @@ getSpaceStepsProducts() const
   return this->spaceStepsProducts[ xPow + 2 ][ yPow + 2 ];
}

template< typename Real,
          typename Device,
          typename Index >
__cuda_callable__
Index
Grid< 2, Real, Device, Index >::
getNumberOfNxFaces() const
{
   return numberOfNxFaces;
}

template< typename Real,
          typename Device,
          typename Index >
+12 −0
Original line number Diff line number Diff line
@@ -167,6 +167,18 @@ class Grid< 3, Real, Device, Index > : public Object
   __cuda_callable__
   const RealType& getSpaceStepsProducts() const;

   /**
    * \brief Returns the number of x-normal faces.
    */
   __cuda_callable__
   IndexType getNumberOfNxFaces() const;

   /**
    * \brief Returns the number of x-normal and y-normal faces.
    */
   __cuda_callable__
   IndexType getNumberOfNxAndNyFaces() const;

   /**
    * \breif Returns the measure (volume) of a cell in this grid.
    */
+22 −0
Original line number Diff line number Diff line
@@ -387,6 +387,28 @@ getSpaceStepsProducts() const
   return this->spaceStepsProducts[ xPow + 2 ][ yPow + 2 ][ zPow + 2 ];
}

template< typename Real,
          typename Device,
          typename Index >
__cuda_callable__
Index
Grid< 3, Real, Device, Index >::
getNumberOfNxFaces() const
{
   return numberOfNxFaces;
}

template< typename Real,
          typename Device,
          typename Index >
__cuda_callable__
Index
Grid< 3, Real, Device, Index >::
getNumberOfNxAndNyFaces() const
{
   return numberOfNxAndNyFaces;
}

template< typename Real,
          typename Device,
          typename Index >