Skip to content
Snippets Groups Projects
Commit 96947803 authored by Tom Fischer's avatar Tom Fischer
Browse files

[MeL/Elements] Preparations for removing the element value.

parent 8e011bd5
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,11 @@ Element::Element(unsigned value, std::size_t id)
{
}
Element::Element(std::size_t id)
: _nodes(nullptr), _id(id), _content(-1.0), _neighbors(nullptr)
{
}
Element::~Element()
{
delete [] this->_nodes;
......
......@@ -219,6 +219,10 @@ protected:
/// @param id element id
Element(unsigned value, std::size_t id);
/// Constructor for a generic mesh element without an array of mesh nodes.
/// @param id element id
explicit Element(std::size_t id);
/// Sets the element ID.
virtual void setID(std::size_t id) { this->_id = id; }
......
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