Skip to content
Snippets Groups Projects
Commit 0f6f6c1e authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Implementing the grid traversal.

parent 11c39a53
No related branches found
No related tags found
No related merge requests found
...@@ -14,6 +14,7 @@ SET( headers tnlGrid.h ...@@ -14,6 +14,7 @@ SET( headers tnlGrid.h
tnlMeshWriterNetgen.h tnlMeshWriterNetgen.h
tnlMeshInitializer.h tnlMeshInitializer.h
tnlMeshEntityInitializer.h tnlMeshEntityInitializer.h
tnlMeshSuperentityInitializerLayer.h ) tnlMeshSuperentityInitializerLayer.h
tnlTraversal.h )
INSTALL( FILES ${headers} DESTINATION include/tnl-${tnlVersion}/mesh ) INSTALL( FILES ${headers} DESTINATION include/tnl-${tnlVersion}/mesh )
\ No newline at end of file
/***************************************************************************
tnlGridTraversal.h - description
-------------------
begin : Jul 28, 2014
copyright : (C) 2014 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 TNLGRIDTRAVERSAL_H_
#define TNLGRIDTRAVERSAL_H_
#include <mesh/tnlTraversal.h>
template< typename Real,
typename Index,
typename UserData >
class tnlTraversal< tnlGrid< 1, Real, tnlHost, Index >, UserData >
{
public:
typedef tnlGrid< 1, Real, tnlHost, Index > GridType;
typedef Real RealType;
typedef tnlHost DeviceType;
typedef Index IndexType;
typedef UserData UserDataType;
static void processBoundaryCells( const GridType& grid,
const UserDataType& userData );
static void processInteriorCells( const GridType& grid,
const UserDataType& userData );
static void processAllCells( const GridType& grid,
const UserDataType& userData );
static void processBoundaryVertices( const GridType& grid,
const UserDataType& userData );
static void processInteriorVertices( const GridType& grid,
const UserDataType& userData );
static void processAllVertices( const GridType& grid,
const UserDataType& userData );
};
template< typename Real,
typename Index,
typename UserData >
class tnlTraversal< tnlGrid< 1, Real, tnlCuda, Index >, UserData >
{
public:
typedef tnlGrid< 1, Real, tnlCuda, Index > GridType;
typedef Real RealType;
typedef tnlCuda DeviceType;
typedef Index IndexType;
typedef UserData UserDataType;
static void processBoundaryCells( const GridType& grid,
const UserDataType& userData );
static void processInteriorCells( const GridType& grid,
const UserDataType& userData );
static void processAllCells( const GridType& grid,
const UserDataType& userData );
static void processBoundaryVertices( const GridType& grid,
const UserDataType& userData );
static void processInteriorVertices( const GridType& grid,
const UserDataType& userData );
static void processAllVertices( const GridType& grid,
const UserDataType& userData );
};
#endif /* TNLGRIDTRAVERSAL_H_ */
/***************************************************************************
tnlTraversal.h - description
-------------------
begin : Jul 28, 2014
copyright : (C) 2014 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 TNLTRAVERSAL_H_
#define TNLTRAVERSAL_H_
#endif /* TNLTRAVERSAL_H_ */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment