Loading src/mesh/tnlMeshBuilder.h +7 −7 Original line number Diff line number Diff line Loading @@ -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; Loading @@ -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 ); Loading src/mesh/tnlMeshEntitySeed.h +6 −0 Original line number Diff line number Diff line Loading @@ -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: Loading src/mesh/traits/tnlMeshEntitiesTag.h +1 −1 Original line number Diff line number Diff line Loading @@ -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 > Loading src/mesh/traits/tnlMeshEntitiesTraits.h +3 −1 Original line number Diff line number Diff line Loading @@ -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 > Loading @@ -43,6 +44,7 @@ class tnlMeshEntitiesTraits typedef EntityTag Tag; typedef tnlMeshEntity< ConfigTag, Tag > Type; typedef tnlMeshEntitySeed< ConfigTag, EntityTag > SeedType; typedef tnlStorageTraits< storageEnabled > EntityStorageTag; Loading src/mesh/traits/tnlMeshTraits.h +4 −1 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ #define TNLMESHTRAITS_H_ #include <core/vectors/tnlStaticVector.h> #include <core/arrays/tnlArray.h> #include <mesh/tnlDimensionsTag.h> template< typename ConfigTag, Loading @@ -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; Loading Loading
src/mesh/tnlMeshBuilder.h +7 −7 Original line number Diff line number Diff line Loading @@ -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; Loading @@ -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 ); Loading
src/mesh/tnlMeshEntitySeed.h +6 −0 Original line number Diff line number Diff line Loading @@ -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: Loading
src/mesh/traits/tnlMeshEntitiesTag.h +1 −1 Original line number Diff line number Diff line Loading @@ -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 > Loading
src/mesh/traits/tnlMeshEntitiesTraits.h +3 −1 Original line number Diff line number Diff line Loading @@ -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 > Loading @@ -43,6 +44,7 @@ class tnlMeshEntitiesTraits typedef EntityTag Tag; typedef tnlMeshEntity< ConfigTag, Tag > Type; typedef tnlMeshEntitySeed< ConfigTag, EntityTag > SeedType; typedef tnlStorageTraits< storageEnabled > EntityStorageTag; Loading
src/mesh/traits/tnlMeshTraits.h +4 −1 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ #define TNLMESHTRAITS_H_ #include <core/vectors/tnlStaticVector.h> #include <core/arrays/tnlArray.h> #include <mesh/tnlDimensionsTag.h> template< typename ConfigTag, Loading @@ -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; Loading