Commit 919e020d authored by Jan Möbius's avatar Jan Möbius

Merge branch 'iter-fixes' into 'master'

Fix operator-- in some of the new iterators

See merge request !69
parents eacdcab4 32211d77
Pipeline #11189 passed with stage
in 6 minutes and 29 seconds
...@@ -1510,7 +1510,7 @@ CellHalfFaceIterImpl& CellHalfFaceIterImpl::operator--() { ...@@ -1510,7 +1510,7 @@ CellHalfFaceIterImpl& CellHalfFaceIterImpl::operator--() {
const std::vector<HalfFaceHandle>& halffaces = const std::vector<HalfFaceHandle>& halffaces =
BaseIter::mesh()->cell(ref_handle_).halffaces(); BaseIter::mesh()->cell(ref_handle_).halffaces();
if (hf_iter_ == halffaces.begin()) { if (hf_iter_ == halffaces.begin()) {
hf_iter_ == halffaces.end(); hf_iter_ = halffaces.end();
--lap_; --lap_;
if (lap_ < 0) if (lap_ < 0)
BaseIter::valid(false); BaseIter::valid(false);
...@@ -1555,7 +1555,7 @@ CellFaceIterImpl& CellFaceIterImpl::operator--() { ...@@ -1555,7 +1555,7 @@ CellFaceIterImpl& CellFaceIterImpl::operator--() {
const std::vector<HalfFaceHandle>& halffaces = const std::vector<HalfFaceHandle>& halffaces =
BaseIter::mesh()->cell(ref_handle_).halffaces(); BaseIter::mesh()->cell(ref_handle_).halffaces();
if (hf_iter_ == halffaces.begin()) { if (hf_iter_ == halffaces.begin()) {
hf_iter_ == halffaces.end(); hf_iter_ = halffaces.end();
--lap_; --lap_;
if (lap_ < 0) if (lap_ < 0)
BaseIter::valid(false); BaseIter::valid(false);
......
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