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

Debuging the mesh initializer.

parent 5dec61c3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -83,6 +83,7 @@ class tnlMeshSubentityStorageLayer< ConfigTag,

   tnlMeshSubentityStorageLayer& operator = ( const tnlMeshSubentityStorageLayer& layer )
   {
      BaseType::operator=( layer );
      this->subentitiesIndices = layer.subentitiesIndices;
      return *this;
   }
@@ -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;
   }

+1 −0
Original line number Diff line number Diff line
@@ -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;
+3 −4
Original line number Diff line number Diff line
@@ -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;
@@ -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;
@@ -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 );