From 1f9ed1603953f3af3a7fe429bd7e7b21946e2578 Mon Sep 17 00:00:00 2001 From: David Wells Date: Fri, 10 Jan 2025 12:37:55 -0500 Subject: [PATCH] CellAccessor: clean up some very long lines. --- source/grid/tria_accessor.cc | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) 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; } } -- 2.39.5