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

Debuging the mesh builder.

parent c5fa59f2
No related branches found
No related tags found
No related merge requests found
...@@ -27,16 +27,16 @@ class tnlMeshBuilder ...@@ -27,16 +27,16 @@ class tnlMeshBuilder
public: public:
typedef Mesh MeshType; typedef Mesh MeshType;
typedef MeshType::MeshTraits MeshTraits; typedef typename MeshType::MeshTraits MeshTraits;
typedef typename MeshTraits::GlobalIndexType GlobalIndexType; typedef typename MeshTraits::GlobalIndexType GlobalIndexType;
typedef typename MeshTraits::LocalIndexType LocalIndexType; typedef typename MeshTraits::LocalIndexType LocalIndexType;
typedef typename MeshTraits::PointType PointType; typedef typename MeshTraits::PointType PointType;
typedef typename MeshTraits::CellType CellType; typedef typename MeshTraits::CellType CellType;
typedef typename MeshTraits::CellSeedType CellSeedType; typedef typename MeshTraits::CellSeedType CellSeedType;
bool setPointsCount( const GlobalIndexType& points ) bool setPointsCount( const GlobalIndexType& points )
{ {
tnlAssert( 0 <= pointsCount, cerr << "pointsCount = " << points ); tnlAssert( 0 <= points, cerr << "pointsCount = " << points );
this->points.setSize( points ); this->points.setSize( points );
this->pointsSet.setSize( points ); this->pointsSet.setSize( points );
pointsSet.setValue( false ); pointsSet.setValue( false );
......
...@@ -18,10 +18,16 @@ ...@@ -18,10 +18,16 @@
#ifndef TNLMESHENTITYSEED_H #ifndef TNLMESHENTITYSEED_H
#define TNLMESHENTITYSEED_H #define TNLMESHENTITYSEED_H
#include <mesh/traits/tnlMeshConfigTraits.h>
template< typename MeshConfig >
class tnlMeshConfigTraits;
template< typename MeshConfig, template< typename MeshConfig,
typename EntityTopology > typename EntityTopology >
class tnlMeshEntitySeed class tnlMeshEntitySeed
{ {
typedef tnlMeshConfigTraits< MeshConfig > MeshConfigTraits;
typedef typename tnlMeshConfigTraits< MeshConfig >::template SubentityTraits< EntityTopology, tnlDimensionsTag< 0 > > SubvertexTraits; typedef typename tnlMeshConfigTraits< MeshConfig >::template SubentityTraits< EntityTopology, tnlDimensionsTag< 0 > > SubvertexTraits;
public: public:
......
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
#ifndef TNLMESHENTITIESTAG_H_ #ifndef TNLMESHENTITIESTAG_H_
#define TNLMESHENTITIESTAG_H_ #define TNLMESHENTITIESTAG_H_
#include <mesh/topologies/tnlMeshEntityTopology.h>
#include <mesh/traits/tnlMeshTraits.h> #include <mesh/traits/tnlMeshTraits.h>
#include <mesh/topologies/tnlMeshEntityTopology.h>
template< typename ConfigTag, template< typename ConfigTag,
typename DimensionsTag > typename DimensionsTag >
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <mesh/traits/tnlMeshEntitiesTag.h> #include <mesh/traits/tnlMeshEntitiesTag.h>
#include <mesh/config/tnlMeshConfigBase.h> #include <mesh/config/tnlMeshConfigBase.h>
#include <mesh/tnlMeshEntityKey.h> #include <mesh/tnlMeshEntityKey.h>
#include <mesh/tnlMeshEntitySeed.h>
template< typename ConfigTag, template< typename ConfigTag,
typename DimensionsTag > typename DimensionsTag >
...@@ -36,13 +37,14 @@ class tnlMeshEntitiesTraits ...@@ -36,13 +37,14 @@ class tnlMeshEntitiesTraits
typedef typename ConfigTag::GlobalIndexType GlobalIndexType; typedef typename ConfigTag::GlobalIndexType GlobalIndexType;
typedef typename ConfigTag::LocalIndexType LocalIndexType; typedef typename ConfigTag::LocalIndexType LocalIndexType;
typedef typename tnlMeshEntitiesTag< ConfigTag, typedef typename tnlMeshEntitiesTag< ConfigTag,
DimensionsTag >::Tag EntityTag; DimensionsTag >::Tag EntityTag;
typedef tnlMeshEntityKey< ConfigTag, EntityTag > Key; typedef tnlMeshEntityKey< ConfigTag, EntityTag > Key;
public: public:
typedef EntityTag Tag; typedef EntityTag Tag;
typedef tnlMeshEntity< ConfigTag, Tag > Type; typedef tnlMeshEntity< ConfigTag, Tag > Type;
typedef tnlMeshEntitySeed< ConfigTag, EntityTag > SeedType;
typedef tnlStorageTraits< storageEnabled > EntityStorageTag; typedef tnlStorageTraits< storageEnabled > EntityStorageTag;
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#define TNLMESHTRAITS_H_ #define TNLMESHTRAITS_H_
#include <core/vectors/tnlStaticVector.h> #include <core/vectors/tnlStaticVector.h>
#include <core/arrays/tnlArray.h>
#include <mesh/tnlDimensionsTag.h> #include <mesh/tnlDimensionsTag.h>
template< typename ConfigTag, template< typename ConfigTag,
...@@ -33,9 +34,11 @@ class tnlMeshTraits ...@@ -33,9 +34,11 @@ class tnlMeshTraits
static const int meshDimensions = MeshConfig::CellType::dimensions; static const int meshDimensions = MeshConfig::CellType::dimensions;
static const int worldDimensions = MeshConfig::worldDimensions; static const int worldDimensions = MeshConfig::worldDimensions;
typedef tnlDimensionsTag< meshDimensions > DimensionsTag;
typedef Device DeviceType; typedef Device DeviceType;
typedef typename MeshConfig::GlobalIndexTyp GlobalIndexType; typedef typename MeshConfig::GlobalIndexType GlobalIndexType;
typedef typename MeshConfig::LocalIndexType LocalIndexType; typedef typename MeshConfig::LocalIndexType LocalIndexType;
typedef tnlStaticVector< worldDimensions, typename MeshConfig::RealType > PointType; typedef tnlStaticVector< worldDimensions, typename MeshConfig::RealType > PointType;
......
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