From: Daniel Arndt Date: Tue, 19 Nov 2019 14:43:45 +0000 (-0500) Subject: Fix compiling python-bindings X-Git-Tag: v9.2.0-rc1~864^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9058%2Fhead;p=dealii.git Fix compiling python-bindings --- 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