Skip to content
Snippets Groups Projects
Commit 17ffa73c authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Removed checkCells method from the mesh initializer

It cannot work because indices are not initialized to -1 anymore. The
checks in the MeshBuilder class should be enough.
parent 309585f0
No related branches found
No related tags found
No related merge requests found
...@@ -216,34 +216,6 @@ class InitializerLayer< MeshConfig, ...@@ -216,34 +216,6 @@ class InitializerLayer< MeshConfig,
} }
using BaseType::findEntitySeedIndex; using BaseType::findEntitySeedIndex;
// TODO: this is unused - should be moved to MeshIntegrityChecker
bool checkCells()
{
const GlobalIndexType numberOfVertices( this->getMesh().getVerticesCount() );
for( GlobalIndexType cell = 0;
cell < this->getMesh().template getEntitiesCount< typename MeshType::Cell >();
cell++ )
for( LocalIndexType i = 0;
i < this->getMesh().template getEntity< MeshType::getMeshDimension() >( cell ).getVerticesCount();
i++ )
{
if( this->getMesh().template getEntity< MeshType::getMeshDimension() >( cell ).getVertexIndex( i ) == - 1 )
{
std::cerr << "The cell number " << cell << " does not have properly set vertex index number " << i << "." << std::endl;
return false;
}
if( this->getMesh().template getEntity< MeshType::getMeshDimension() >( cell ).getVertexIndex( i ) >= numberOfVertices )
{
std::cerr << "The cell number " << cell << " does not have properly set vertex index number " << i
<< ". The index " << this->getMesh().template getEntity< MeshType::getMeshDimension() >( cell ).getVertexIndex( i )
<< "is higher than the number of all vertices ( " << numberOfVertices
<< " )." << std::endl;
return false;
}
}
return true;
}
}; };
/**** /****
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment