From 5d1987dee9e75e4edca271b705acda9d080ae912 Mon Sep 17 00:00:00 2001 From: Simon Praetorius <simon.praetorius@tu-dresden.de> Date: Sun, 15 Sep 2024 13:31:22 +0200 Subject: [PATCH] Revert "Switch to std::uint_least32_t for stored indices in MatrixIndexSet" This reverts commit 4886d18b98fbae9b96c30a148a1320158081b07c. --- dune/istl/matrixindexset.hh | 2 +- dune/python/istl/matrixindexset.hh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dune/istl/matrixindexset.hh b/dune/istl/matrixindexset.hh index c6c60bd16..acc4466b4 100644 --- a/dune/istl/matrixindexset.hh +++ b/dune/istl/matrixindexset.hh @@ -31,7 +31,7 @@ namespace Dune { */ class MatrixIndexSet { - using Index = std::uint_least32_t; + using Index = std::size_t; // A vector that partly mimics a std::set by staying // sorted on insert() and having unique values. diff --git a/dune/python/istl/matrixindexset.hh b/dune/python/istl/matrixindexset.hh index ae2e26722..31c4cb8c9 100644 --- a/dune/python/istl/matrixindexset.hh +++ b/dune/python/istl/matrixindexset.hh @@ -3,7 +3,6 @@ #ifndef DUNE_PYTHON_ISTL_BCRSMATRIX_HH #define DUNE_PYTHON_ISTL_BCRSMATRIX_HH -#include <cstdint> #include <memory> #include <stdexcept> #include <string> @@ -30,7 +29,7 @@ namespace Dune void registerMatrixIndexSet(pybind11::handle scope, pybind11::class_<MatrixIndexSet, options...> cls) { - using size_type = Dune::MatrixIndexSet::size_type; + typedef std::size_t size_type; // two different possible constructors cls.def( pybind11::init( [] () { return new MatrixIndexSet(); } ) ); -- GitLab