Skip to content
Snippets Groups Projects
Commit 7216a6df authored by Karsten Rink's avatar Karsten Rink
Browse files

removed some warnings

parent b3dcc448
No related branches found
No related tags found
No related merge requests found
......@@ -39,16 +39,16 @@ public:
virtual ~Edge();
/// Returns the edge i of the element.
const Element* getEdge(unsigned i) const { return NULL; };
const Element* getEdge(unsigned i) const { (void)i; return NULL; };
/// Returns the face i of the element.
const Element* getFace(unsigned i) const { return NULL; };
const Element* getFace(unsigned i) const { (void)i; return NULL; };
/// 1D elements have no edges
unsigned getNEdges() const { return 0; };
/// Get the number of nodes for face i.
unsigned getNFaceNodes(unsigned i) const { return 0; };
unsigned getNFaceNodes(unsigned i) const { (void)i; return 0; };
/// Get the number of faces for this element.
unsigned getNFaces() const { return 0; };
......@@ -71,10 +71,10 @@ protected:
double computeLength();
/// 1D elements have no edges.
Node* getEdgeNode(unsigned edge_id, unsigned node_id) const { return NULL; };
Node* getEdgeNode(unsigned edge_id, unsigned node_id) const { (void)edge_id; (void)node_id; return NULL; };
/// 1D elements have no faces.
Node* getFaceNode(unsigned face_id, unsigned node_id) const { return NULL; };
Node* getFaceNode(unsigned face_id, unsigned node_id) const { (void)face_id; (void)node_id; return NULL; };
double _length;
......
......@@ -28,7 +28,7 @@ public:
const Element* getFace(unsigned i) const { return this->getEdge(i); };
/// Get the number of nodes for face i.
unsigned getNFaceNodes(unsigned i) const { return 2; };
unsigned getNFaceNodes(unsigned i) const { (void)i; return 2; };
/// 2D elements have no faces.
unsigned getNFaces() const { return 0; };
......
......@@ -53,7 +53,7 @@ public:
unsigned getNEdges() const { return 12; };
/// Get the number of nodes for face i.
unsigned getNFaceNodes(unsigned i) const { return 4; };
unsigned getNFaceNodes(unsigned i) const { (void)i; return 4; };
/// Get the number of faces for this element.
unsigned getNFaces() const { return 6; };
......
......@@ -42,7 +42,7 @@ const unsigned Prism::_n_face_nodes[5] = { 3, 4, 4, 4, 3 };
Prism::Prism(Node* nodes[6], unsigned value)
: Cell(MshElemType::PRISM, value)
{
_nodes = _nodes;
_nodes = nodes;
_neighbors = new Element*[5];
for (unsigned i=0; i<5; i++)
_neighbors[i] = NULL;
......
......@@ -52,7 +52,7 @@ public:
unsigned getNEdges() const { return 6; };
/// Get the number of nodes for face i.
unsigned getNFaceNodes(unsigned i) const { return 3; };
unsigned getNFaceNodes(unsigned i) const { (void)i; return 3; };
/// Get the number of faces for this element.
unsigned getNFaces() const { return 4; };
......
......@@ -18,13 +18,11 @@
int main(int argc, char *argv[])
{
std::string file_name("/mnt/visdata/tom/data/TestMeshes/Mesh-dx1.00-Layered20.msh");
std::cout << "sizeof(double): " << sizeof (double) << std::endl;
std::cout << "sizeof(GeoLib::Point): " << sizeof (GEOLIB::Point) << std::endl;
std::cout << "sizeof(GeoLib::PointWithID): " << sizeof (GEOLIB::PointWithID) << std::endl;
std::cout << "sizeof(Node): " << sizeof (MeshLib::Node) << std::endl;
std::cout << "sizeof(Element): " << sizeof (MeshLib::Element) << std::endl;
//std::string file_name("c:/Project/PlyTestMesh.msh");
FileIO::MeshIO mesh_io;
#ifndef WIN32
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment