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

Debuging the mesh initializer.

parent 5dec61c3
No related branches found
No related tags found
No related merge requests found
...@@ -83,6 +83,7 @@ class tnlMeshSubentityStorageLayer< ConfigTag, ...@@ -83,6 +83,7 @@ class tnlMeshSubentityStorageLayer< ConfigTag,
tnlMeshSubentityStorageLayer& operator = ( const tnlMeshSubentityStorageLayer& layer ) tnlMeshSubentityStorageLayer& operator = ( const tnlMeshSubentityStorageLayer& layer )
{ {
BaseType::operator=( layer );
this->subentitiesIndices = layer.subentitiesIndices; this->subentitiesIndices = layer.subentitiesIndices;
return *this; return *this;
} }
...@@ -214,6 +215,8 @@ class tnlMeshSubentityStorageLayer< ConfigTag, ...@@ -214,6 +215,8 @@ class tnlMeshSubentityStorageLayer< ConfigTag,
tnlMeshSubentityStorageLayer& operator = ( const tnlMeshSubentityStorageLayer& layer ) tnlMeshSubentityStorageLayer& operator = ( const tnlMeshSubentityStorageLayer& layer )
{ {
this->verticesIndices = layer.verticesIndices; this->verticesIndices = layer.verticesIndices;
cout << " layer.verticesIndices = " << layer.verticesIndices << endl;
cout << " this->verticesIndices = " << this->verticesIndices << endl;
return *this; return *this;
} }
......
...@@ -202,6 +202,7 @@ class tnlMeshInitializerLayer< ConfigTag, ...@@ -202,6 +202,7 @@ class tnlMeshInitializerLayer< ConfigTag,
this->getMesh().template setNumberOfEntities< DimensionsTraits::value >( numberOfEntities ); this->getMesh().template setNumberOfEntities< DimensionsTraits::value >( numberOfEntities );
uniqueContainer.toArray( this->getMesh().template getEntities< DimensionsTraits::value >() ); uniqueContainer.toArray( this->getMesh().template getEntities< DimensionsTraits::value >() );
uniqueContainer.reset(); uniqueContainer.reset();
cout << " this->getMesh().template getEntities< DimensionsTraits::value >() has: " << this->getMesh().template getEntities< DimensionsTraits::value >() << endl;
//ContainerType& entityContainer = this->getMesh().entityContainer(DimensionsTraits()); //ContainerType& entityContainer = this->getMesh().entityContainer(DimensionsTraits());
for( GlobalIndexType i = 0; for( GlobalIndexType i = 0;
......
...@@ -207,7 +207,7 @@ class tnlMeshTester : public CppUnit :: TestCase ...@@ -207,7 +207,7 @@ class tnlMeshTester : public CppUnit :: TestCase
* 12 3 6 10 * 12 3 6 10
*/ */
mesh.setNumberOfEntities< 3 >( 1 ); mesh.setNumberOfEntities< 3 >( 18 );
// 12 8 7 5 // 12 8 7 5
mesh.getEntities< 3 >()[ 0 ].getVerticesIndices()[ 0 ] = 12; mesh.getEntities< 3 >()[ 0 ].getVerticesIndices()[ 0 ] = 12;
...@@ -216,13 +216,13 @@ class tnlMeshTester : public CppUnit :: TestCase ...@@ -216,13 +216,13 @@ class tnlMeshTester : public CppUnit :: TestCase
mesh.getEntities< 3 >()[ 0 ].getVerticesIndices()[ 3 ] = 5; mesh.getEntities< 3 >()[ 0 ].getVerticesIndices()[ 3 ] = 5;
// 12 7 8 10 // 12 7 8 10
/*mesh.getEntities< 3 >()[ 1 ].getVerticesIndices()[ 0 ] = 12; mesh.getEntities< 3 >()[ 1 ].getVerticesIndices()[ 0 ] = 12;
mesh.getEntities< 3 >()[ 1 ].getVerticesIndices()[ 1 ] = 7; mesh.getEntities< 3 >()[ 1 ].getVerticesIndices()[ 1 ] = 7;
mesh.getEntities< 3 >()[ 1 ].getVerticesIndices()[ 2 ] = 8; mesh.getEntities< 3 >()[ 1 ].getVerticesIndices()[ 2 ] = 8;
mesh.getEntities< 3 >()[ 1 ].getVerticesIndices()[ 3 ] = 10; mesh.getEntities< 3 >()[ 1 ].getVerticesIndices()[ 3 ] = 10;
// 12 11 8 9 // 12 11 8 9
/*mesh.getEntities< 3 >()[ 2 ].getVerticesIndices()[ 0 ] = 12; mesh.getEntities< 3 >()[ 2 ].getVerticesIndices()[ 0 ] = 12;
mesh.getEntities< 3 >()[ 2 ].getVerticesIndices()[ 1 ] = 11; mesh.getEntities< 3 >()[ 2 ].getVerticesIndices()[ 1 ] = 11;
mesh.getEntities< 3 >()[ 2 ].getVerticesIndices()[ 2 ] = 8; mesh.getEntities< 3 >()[ 2 ].getVerticesIndices()[ 2 ] = 8;
mesh.getEntities< 3 >()[ 2 ].getVerticesIndices()[ 3 ] = 9; mesh.getEntities< 3 >()[ 2 ].getVerticesIndices()[ 3 ] = 9;
...@@ -316,7 +316,6 @@ class tnlMeshTester : public CppUnit :: TestCase ...@@ -316,7 +316,6 @@ class tnlMeshTester : public CppUnit :: TestCase
mesh.getEntities< 3 >()[ 17 ].getVerticesIndices()[ 1 ] = 3; mesh.getEntities< 3 >()[ 17 ].getVerticesIndices()[ 1 ] = 3;
mesh.getEntities< 3 >()[ 17 ].getVerticesIndices()[ 2 ] = 6; mesh.getEntities< 3 >()[ 17 ].getVerticesIndices()[ 2 ] = 6;
mesh.getEntities< 3 >()[ 17 ].getVerticesIndices()[ 3 ] = 10; mesh.getEntities< 3 >()[ 17 ].getVerticesIndices()[ 3 ] = 10;
*/
tnlMeshInitializer< TestTetrahedronMeshConfig > meshInitializer; tnlMeshInitializer< TestTetrahedronMeshConfig > meshInitializer;
meshInitializer.initMesh( mesh ); meshInitializer.initMesh( mesh );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment