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

fixed destructor for neighbour-element-array

parent cb0e9a7c
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,7 @@ Cell::Cell(MshElemType::type type, unsigned value)
Cell::~Cell()
{
delete[] this->_neighbors;
}
......
......@@ -26,7 +26,6 @@ Element::Element(MshElemType::type type, unsigned value)
Element::~Element()
{
delete[] this->_nodes;
delete[] this->_neighbors;
}
const Element* Element::getNeighbor(unsigned i) const
......
......@@ -21,6 +21,7 @@ Face::Face(MshElemType::type type, unsigned value)
Face::~Face()
{
delete[] this->_neighbors;
}
......
......@@ -11,6 +11,7 @@
int main(int argc, char *argv[])
{
std::string file_name("c:/Project/Data/Ammer/Ammer-Homogen100m-Final.msh");
//std::string file_name("c:/Project/PlyTestMesh.msh");
FileIO::MeshIO mesh_io;
MeshLib::Mesh* mesh = mesh_io.loadMeshFromFile(file_name);
......
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