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

Changint methods for the grid topology - get[Cell,Face]NextTo[Cell,Face].

parent 339d87df
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4,8 +4,11 @@ ADD_SUBDIRECTORY( traits )
ADD_SUBDIRECTORY( topologies )

SET( headers tnlGrid.h
             tnlGrid1D.h
             tnlGrid1D_impl.h
             tnlGrid2D.h
             tnlGrid2D_impl.h
             tnlGrid3D.h
             tnlGrid3D_impl.h
             tnlDummyMesh.h
             tnlGnuplotWriter.h
+3 −892

File changed.

Preview size limit exceeded, changes collapsed.

src/mesh/tnlGrid1D.h

0 → 100644
+233 −0

File added.

Preview size limit exceeded, changes collapsed.

+6 −18
Original line number Diff line number Diff line
@@ -230,31 +230,19 @@ tnlGrid< 1, Real, Device, Index > :: getVertexCoordinates( const Index vertexInd
template< typename Real,
          typename Device,
          typename Index >
   template< int dx >
#ifdef HAVE_CUDA
   __device__ __host__
#endif
Index tnlGrid< 1, Real, Device, Index > :: getCellXPredecessor( const IndexType& cellIndex ) const
Index tnlGrid< 1, Real, Device, Index > :: getCellNextToCell( const IndexType& cellIndex ) const
{
   tnlAssert( cellIndex > 0 && cellIndex < this->getNumberOfCells(),
   tnlAssert( cellIndex + dx >= 0 &&
              cellIndex + dx < this->getNumberOfCells(),
              cerr << " cellIndex = " << cellIndex
                   << " dx = " << dx
                   << " this->getNumberOfCells() = " << this->getNumberOfCells()
                   << " this->getName() " << this->getName(); );
   return cellIndex - 1;
}

template< typename Real,
          typename Device,
          typename Index >
#ifdef HAVE_CUDA
   __device__ __host__
#endif
Index tnlGrid< 1, Real, Device, Index > :: getCellXSuccessor( const IndexType& cellIndex ) const
{
   tnlAssert( cellIndex >= 0 && cellIndex < this->getNumberOfCells() - 1,
              cerr << " cellIndex = " << cellIndex
                   << " this->getNumberOfCells() - 1 = " << this->getNumberOfCells() - 1
                   << " this->getName() " << this->getName(); );
   return cellIndex + 1;
   return cellIndex + dx;
}

template< typename Real,

src/mesh/tnlGrid2D.h

0 → 100644
+317 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading