Loading src/mesh/layers/tnlMeshSubentityStorageLayer.h +3 −0 Original line number Diff line number Diff line Loading @@ -83,6 +83,7 @@ class tnlMeshSubentityStorageLayer< ConfigTag, tnlMeshSubentityStorageLayer& operator = ( const tnlMeshSubentityStorageLayer& layer ) { BaseType::operator=( layer ); this->subentitiesIndices = layer.subentitiesIndices; return *this; } Loading Loading @@ -214,6 +215,8 @@ class tnlMeshSubentityStorageLayer< ConfigTag, tnlMeshSubentityStorageLayer& operator = ( const tnlMeshSubentityStorageLayer& layer ) { this->verticesIndices = layer.verticesIndices; cout << " layer.verticesIndices = " << layer.verticesIndices << endl; cout << " this->verticesIndices = " << this->verticesIndices << endl; return *this; } Loading src/mesh/tnlMeshInitializer.h +1 −0 Original line number Diff line number Diff line Loading @@ -202,6 +202,7 @@ class tnlMeshInitializerLayer< ConfigTag, this->getMesh().template setNumberOfEntities< DimensionsTraits::value >( numberOfEntities ); uniqueContainer.toArray( this->getMesh().template getEntities< DimensionsTraits::value >() ); uniqueContainer.reset(); cout << " this->getMesh().template getEntities< DimensionsTraits::value >() has: " << this->getMesh().template getEntities< DimensionsTraits::value >() << endl; //ContainerType& entityContainer = this->getMesh().entityContainer(DimensionsTraits()); for( GlobalIndexType i = 0; Loading tests/unit-tests/mesh/tnlMeshTester.h +3 −4 Original line number Diff line number Diff line Loading @@ -207,7 +207,7 @@ class tnlMeshTester : public CppUnit :: TestCase * 12 3 6 10 */ mesh.setNumberOfEntities< 3 >( 1 ); mesh.setNumberOfEntities< 3 >( 18 ); // 12 8 7 5 mesh.getEntities< 3 >()[ 0 ].getVerticesIndices()[ 0 ] = 12; Loading @@ -216,13 +216,13 @@ class tnlMeshTester : public CppUnit :: TestCase mesh.getEntities< 3 >()[ 0 ].getVerticesIndices()[ 3 ] = 5; // 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()[ 2 ] = 8; mesh.getEntities< 3 >()[ 1 ].getVerticesIndices()[ 3 ] = 10; // 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()[ 2 ] = 8; mesh.getEntities< 3 >()[ 2 ].getVerticesIndices()[ 3 ] = 9; Loading Loading @@ -316,7 +316,6 @@ class tnlMeshTester : public CppUnit :: TestCase mesh.getEntities< 3 >()[ 17 ].getVerticesIndices()[ 1 ] = 3; mesh.getEntities< 3 >()[ 17 ].getVerticesIndices()[ 2 ] = 6; mesh.getEntities< 3 >()[ 17 ].getVerticesIndices()[ 3 ] = 10; */ tnlMeshInitializer< TestTetrahedronMeshConfig > meshInitializer; meshInitializer.initMesh( mesh ); Loading Loading
src/mesh/layers/tnlMeshSubentityStorageLayer.h +3 −0 Original line number Diff line number Diff line Loading @@ -83,6 +83,7 @@ class tnlMeshSubentityStorageLayer< ConfigTag, tnlMeshSubentityStorageLayer& operator = ( const tnlMeshSubentityStorageLayer& layer ) { BaseType::operator=( layer ); this->subentitiesIndices = layer.subentitiesIndices; return *this; } Loading Loading @@ -214,6 +215,8 @@ class tnlMeshSubentityStorageLayer< ConfigTag, tnlMeshSubentityStorageLayer& operator = ( const tnlMeshSubentityStorageLayer& layer ) { this->verticesIndices = layer.verticesIndices; cout << " layer.verticesIndices = " << layer.verticesIndices << endl; cout << " this->verticesIndices = " << this->verticesIndices << endl; return *this; } Loading
src/mesh/tnlMeshInitializer.h +1 −0 Original line number Diff line number Diff line Loading @@ -202,6 +202,7 @@ class tnlMeshInitializerLayer< ConfigTag, this->getMesh().template setNumberOfEntities< DimensionsTraits::value >( numberOfEntities ); uniqueContainer.toArray( this->getMesh().template getEntities< DimensionsTraits::value >() ); uniqueContainer.reset(); cout << " this->getMesh().template getEntities< DimensionsTraits::value >() has: " << this->getMesh().template getEntities< DimensionsTraits::value >() << endl; //ContainerType& entityContainer = this->getMesh().entityContainer(DimensionsTraits()); for( GlobalIndexType i = 0; Loading
tests/unit-tests/mesh/tnlMeshTester.h +3 −4 Original line number Diff line number Diff line Loading @@ -207,7 +207,7 @@ class tnlMeshTester : public CppUnit :: TestCase * 12 3 6 10 */ mesh.setNumberOfEntities< 3 >( 1 ); mesh.setNumberOfEntities< 3 >( 18 ); // 12 8 7 5 mesh.getEntities< 3 >()[ 0 ].getVerticesIndices()[ 0 ] = 12; Loading @@ -216,13 +216,13 @@ class tnlMeshTester : public CppUnit :: TestCase mesh.getEntities< 3 >()[ 0 ].getVerticesIndices()[ 3 ] = 5; // 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()[ 2 ] = 8; mesh.getEntities< 3 >()[ 1 ].getVerticesIndices()[ 3 ] = 10; // 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()[ 2 ] = 8; mesh.getEntities< 3 >()[ 2 ].getVerticesIndices()[ 3 ] = 9; Loading Loading @@ -316,7 +316,6 @@ class tnlMeshTester : public CppUnit :: TestCase mesh.getEntities< 3 >()[ 17 ].getVerticesIndices()[ 1 ] = 3; mesh.getEntities< 3 >()[ 17 ].getVerticesIndices()[ 2 ] = 6; mesh.getEntities< 3 >()[ 17 ].getVerticesIndices()[ 3 ] = 10; */ tnlMeshInitializer< TestTetrahedronMeshConfig > meshInitializer; meshInitializer.initMesh( mesh ); Loading