Commit be1af46d authored by Dr. Felix Tobias Schindler's avatar Dr. Felix Tobias Schindler
Browse files

[bindings.dunegdt] refine == check

parent 11ed4bc1
......@@ -122,7 +122,7 @@ if config.HAVE_DUNEGDT:
def __eq__(self, other):
return type(other) is DuneXTVectorSpace \
and self.vector_type == other.vector_type and self.dim == other.dim
and self.vector_type == other.vector_type and self.dim == other.dim and self.id == other.id
# since we implement __eq__, we also need to implement __hash__
def __hash__(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment