Skip to content
Snippets Groups Projects
Commit f7cb1347 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

missing unsigned

parent bb88fb1d
No related branches found
No related tags found
No related merge requests found
// $Id: GEdge.cpp,v 1.43 2008-02-22 21:09:00 geuzaine Exp $
// $Id: GEdge.cpp,v 1.44 2008-02-23 15:40:29 geuzaine Exp $
//
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
//
......@@ -53,12 +53,12 @@ GEdge::~GEdge()
delete lines[i];
}
int GEdge::getNumMeshElements()
unsigned int GEdge::getNumMeshElements()
{
return lines.size();
}
MElement *GEdge::getMeshElement(int index)
MElement *GEdge::getMeshElement(unsigned int index)
{
if(index < lines.size())
return lines[index];
......
......@@ -112,8 +112,8 @@ class GEdge : public GEntity {
bool isMeshDegenerated() const{ return (v0 == v1 && mesh_vertices.size() < 2); }
// Get number of elements in the mesh and get element by index
int getNumMeshElements();
MElement *getMeshElement(int index);
unsigned int getNumMeshElements();
MElement *getMeshElement(unsigned int index);
// Resets the mesh attributes to default values
virtual void resetMeshAttributes();
......
// $Id: GFace.cpp,v 1.57 2008-02-22 21:09:00 geuzaine Exp $
// $Id: GFace.cpp,v 1.58 2008-02-23 15:40:29 geuzaine Exp $
//
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
//
......@@ -73,12 +73,12 @@ GFace::~GFace()
delete va_geom_triangles;
}
int GFace::getNumMeshElements()
unsigned int GFace::getNumMeshElements()
{
return triangles.size() + quadrangles.size();
}
MElement *GFace::getMeshElement(int index)
MElement *GFace::getMeshElement(unsigned int index)
{
if(index < triangles.size())
return triangles[index];
......
......@@ -164,8 +164,8 @@ class GFace : public GEntity
void getMeanPlaneData(double plan[3][3]) const;
// Get number of elements in the mesh and get element by index
int getNumMeshElements();
MElement *getMeshElement(int index);
unsigned int getNumMeshElements();
MElement *getMeshElement(unsigned int index);
// Resets the mesh attributes to default values
virtual void resetMeshAttributes();
......
// $Id: GRegion.cpp,v 1.25 2008-02-22 21:09:00 geuzaine Exp $
// $Id: GRegion.cpp,v 1.26 2008-02-23 15:40:29 geuzaine Exp $
//
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
//
......@@ -59,12 +59,12 @@ GRegion::~GRegion()
delete pyramids[i];
}
int GRegion::getNumMeshElements()
unsigned int GRegion::getNumMeshElements()
{
return tetrahedra.size() + hexahedra.size() + prisms.size() + pyramids.size();
}
MElement *GRegion::getMeshElement(int index)
MElement *GRegion::getMeshElement(unsigned int index)
{
if(index < tetrahedra.size())
return tetrahedra[index];
......
......@@ -61,8 +61,8 @@ class GRegion : public GEntity {
virtual std::string getAdditionalInfoString();
// Get number of elements in the mesh and get element by index
int getNumMeshElements();
MElement *getMeshElement(int index);
unsigned int getNumMeshElements();
MElement *getMeshElement(unsigned int index);
// Resets the mesh attributes to default values
virtual void resetMeshAttributes();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment