From fc6dd0f19b9d12d01b69635a437f8f1d3dd0f498 Mon Sep 17 00:00:00 2001 From: Bernd Flemisch <bernd@iws.uni-stuttgart.de> Date: Tue, 14 Oct 2014 14:23:09 +0000 Subject: [PATCH] [parallel] force the gathered information to be of type int This fixes a compilation error encountered with YaspGrid and the Dune master. Since the return type of mappers has been generalized, an implicit conversion to int does not happen anymore. Reviewed by gruenich. git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@13479 2fb0f335-1f38-0410-981e-8018bf24f1b0 --- dumux/linear/vertexborderlistfromgrid.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dumux/linear/vertexborderlistfromgrid.hh b/dumux/linear/vertexborderlistfromgrid.hh index 662907dece..d88b07b292 100644 --- a/dumux/linear/vertexborderlistfromgrid.hh +++ b/dumux/linear/vertexborderlistfromgrid.hh @@ -81,7 +81,7 @@ public: void gather(MessageBufferImp &buff, const EntityType &e) const { buff.write(gridView_.comm().rank()); - buff.write(map_.map(e)); + buff.write(static_cast<int>(map_.map(e))); } template<class MessageBufferImp, class EntityType> -- GitLab