From: David Wells Date: Fri, 10 Jan 2025 17:37:55 +0000 (-0500) Subject: CellAccessor: clean up some very long lines. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f9ed1603953f3af3a7fe429bd7e7b21946e2578;p=dealii.git CellAccessor: clean up some very long lines. --- diff --git a/source/grid/tria_accessor.cc b/source/grid/tria_accessor.cc index 6353eebf12..c17faefb8a 100644 --- a/source/grid/tria_accessor.cc +++ b/source/grid/tria_accessor.cc @@ -2357,27 +2357,18 @@ CellAccessor::set_neighbor( { AssertIndexRange(i, this->n_faces()); + auto &neighbor = + this->tria->levels[this->present_level] + ->neighbors[this->present_index * ReferenceCells::max_n_faces() + i]; if (pointer.state() == IteratorState::valid) { - this->tria->levels[this->present_level] - ->neighbors[this->present_index * ReferenceCells::max_n_faces() + - i] - .first = pointer->present_level; - this->tria->levels[this->present_level] - ->neighbors[this->present_index * ReferenceCells::max_n_faces() + - i] - .second = pointer->present_index; + neighbor.first = pointer->present_level; + neighbor.second = pointer->present_index; } else { - this->tria->levels[this->present_level] - ->neighbors[this->present_index * ReferenceCells::max_n_faces() + - i] - .first = -1; - this->tria->levels[this->present_level] - ->neighbors[this->present_index * ReferenceCells::max_n_faces() + - i] - .second = -1; + neighbor.first = -1; + neighbor.second = -1; } }