From f1b2fc2bafd8422f7f00af7f0daace20c8165909 Mon Sep 17 00:00:00 2001 From: Robert Kloefkorn Date: Fri, 24 Apr 2020 14:04:56 +0200 Subject: [PATCH] [bugfix][GridCommHandle] fix incorrect signature of overloaded interface method causing segfault with >= DUNE 2.7. --- opm/models/parallel/gridcommhandles.hh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/opm/models/parallel/gridcommhandles.hh b/opm/models/parallel/gridcommhandles.hh index ff00e3844..24ecd0986 100644 --- a/opm/models/parallel/gridcommhandles.hh +++ b/opm/models/parallel/gridcommhandles.hh @@ -111,14 +111,14 @@ public: { } - bool contains(unsigned dim OPM_UNUSED, unsigned codim) const + bool contains(int dim OPM_UNUSED, int codim) const { // return true if the codim is the same as the codim which we // are asked to communicate with. return codim == commCodim; } - bool fixedsize(unsigned dim OPM_UNUSED, unsigned codim OPM_UNUSED) const + bool fixedsize(int dim OPM_UNUSED, int codim OPM_UNUSED) const { // for each DOF we communicate a single value which has a // fixed size @@ -166,14 +166,14 @@ public: : mapper_(mapper), container_(container) {} - bool contains(unsigned dim OPM_UNUSED, unsigned codim) const + bool contains(int dim OPM_UNUSED, int codim) const { // return true if the codim is the same as the codim which we // are asked to communicate with. return codim == commCodim; } - bool fixedsize(unsigned dim OPM_UNUSED, unsigned codim OPM_UNUSED) const + bool fixedsize(int dim OPM_UNUSED, int codim OPM_UNUSED) const { // for each DOF we communicate a single value which has a // fixed size @@ -223,14 +223,14 @@ public: : mapper_(mapper), container_(container) {} - bool contains(unsigned dim OPM_UNUSED, unsigned codim) const + bool contains(int dim OPM_UNUSED, int codim) const { // return true if the codim is the same as the codim which we // are asked to communicate with. return codim == commCodim; } - bool fixedsize(unsigned dim OPM_UNUSED, unsigned codim OPM_UNUSED) const + bool fixedsize(int dim OPM_UNUSED, int codim OPM_UNUSED) const { // for each DOF we communicate a single value which has a // fixed size