From 91c267cc520d3415022fd9226344cf709fcf8a88 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Tue, 19 Nov 2019 09:43:45 -0500 Subject: [PATCH] Fix compiling python-bindings --- .../include/cell_accessor_wrapper.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/contrib/python-bindings/include/cell_accessor_wrapper.h b/contrib/python-bindings/include/cell_accessor_wrapper.h index 159349691a..79e0f481bf 100644 --- a/contrib/python-bindings/include/cell_accessor_wrapper.h +++ b/contrib/python-bindings/include/cell_accessor_wrapper.h @@ -172,7 +172,7 @@ namespace python << "acceptable is " << arg2 - 1); private: - template + template const CellAccessorWrapper construct_neighbor_wrapper(const int i) const; @@ -193,22 +193,22 @@ namespace python }; - template + template const CellAccessorWrapper CellAccessorWrapper::construct_neighbor_wrapper(const int i) const { - CellAccessor *cell = - static_cast *>(cell_accessor); + Assert(dim_ == dim && spacedim_ == spacedim, ExcInternalError()); + auto *cell = static_cast *>(cell_accessor); auto neighbor = cell->neighbor(i); CellAccessorWrapper neighbor_wrapper; - neighbor_wrapper.dim = dim; - neighbor_wrapper.spacedim = spacedim; + neighbor_wrapper.dim = dim_; + neighbor_wrapper.spacedim = spacedim_; neighbor_wrapper.cell_accessor = - new CellAccessor(&neighbor->get_triangulation(), - neighbor->level(), - neighbor->index()); + new CellAccessor(&neighbor->get_triangulation(), + neighbor->level(), + neighbor->index()); return neighbor_wrapper; } } // namespace python -- 2.39.5