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

Debuging the mesh builder.

parent c5fa59f2
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ class tnlMeshBuilder

   public:
      typedef Mesh                                     MeshType;
      typedef MeshType::MeshTraits                     MeshTraits;
      typedef typename MeshType::MeshTraits                     MeshTraits;
      typedef typename MeshTraits::GlobalIndexType     GlobalIndexType;
      typedef typename MeshTraits::LocalIndexType      LocalIndexType;
      typedef typename MeshTraits::PointType           PointType;
@@ -36,7 +36,7 @@ class tnlMeshBuilder

   bool setPointsCount( const GlobalIndexType& points )
   {
      tnlAssert( 0 <= pointsCount, cerr << "pointsCount = " << points );
      tnlAssert( 0 <= points, cerr << "pointsCount = " << points );
      this->points.setSize( points );
      this->pointsSet.setSize( points );
      pointsSet.setValue( false );
+6 −0
Original line number Diff line number Diff line
@@ -18,10 +18,16 @@
#ifndef TNLMESHENTITYSEED_H
#define	TNLMESHENTITYSEED_H

#include <mesh/traits/tnlMeshConfigTraits.h>

template< typename MeshConfig >
class tnlMeshConfigTraits;

template< typename MeshConfig,
          typename EntityTopology >
class tnlMeshEntitySeed
{
   typedef tnlMeshConfigTraits< MeshConfig >      MeshConfigTraits;
	typedef typename tnlMeshConfigTraits< MeshConfig >::template SubentityTraits< EntityTopology, tnlDimensionsTag< 0 > > SubvertexTraits;

   public:
+1 −1
Original line number Diff line number Diff line
@@ -18,8 +18,8 @@
#ifndef TNLMESHENTITIESTAG_H_
#define TNLMESHENTITIESTAG_H_

#include <mesh/topologies/tnlMeshEntityTopology.h>
#include <mesh/traits/tnlMeshTraits.h>
#include <mesh/topologies/tnlMeshEntityTopology.h>

template< typename ConfigTag,
          typename DimensionsTag >
+3 −1
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@
#include <mesh/traits/tnlMeshEntitiesTag.h>
#include <mesh/config/tnlMeshConfigBase.h>
#include <mesh/tnlMeshEntityKey.h>
#include <mesh/tnlMeshEntitySeed.h>

template< typename ConfigTag,
          typename DimensionsTag >
@@ -43,6 +44,7 @@ class tnlMeshEntitiesTraits

   typedef EntityTag                                              Tag;
   typedef tnlMeshEntity< ConfigTag, Tag >                        Type;
   typedef tnlMeshEntitySeed< ConfigTag, EntityTag >              SeedType;

   typedef tnlStorageTraits< storageEnabled >                     EntityStorageTag;

+4 −1
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@
#define TNLMESHTRAITS_H_

#include <core/vectors/tnlStaticVector.h>
#include <core/arrays/tnlArray.h>
#include <mesh/tnlDimensionsTag.h>

template< typename ConfigTag,
@@ -34,8 +35,10 @@ class tnlMeshTraits
      static const int meshDimensions = MeshConfig::CellType::dimensions;
      static const int worldDimensions = MeshConfig::worldDimensions;
      
      typedef tnlDimensionsTag< meshDimensions >                                   DimensionsTag;

      typedef Device                                                               DeviceType;
      typedef typename MeshConfig::GlobalIndexTyp                                  GlobalIndexType;
      typedef typename MeshConfig::GlobalIndexType                                 GlobalIndexType;
	   typedef typename MeshConfig::LocalIndexType                                  LocalIndexType;      
      
      typedef tnlStaticVector< worldDimensions, typename MeshConfig::RealType >    PointType;