From 449f45f7a145b39e24e7030c183c77410642cde1 Mon Sep 17 00:00:00 2001 From: Sebastian Eibl <sebastian.eibl@fau.de> Date: Wed, 13 Jun 2018 10:12:03 +0200 Subject: [PATCH] fixed shortening warning --- src/pe/amr/weight_assignment/MetisAssignmentFunctor.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pe/amr/weight_assignment/MetisAssignmentFunctor.h b/src/pe/amr/weight_assignment/MetisAssignmentFunctor.h index 1c6a29dec..dd1fdac59 100644 --- a/src/pe/amr/weight_assignment/MetisAssignmentFunctor.h +++ b/src/pe/amr/weight_assignment/MetisAssignmentFunctor.h @@ -63,10 +63,11 @@ public: { const double dx(1.0); info.setEdgeWeight( it->first->getNeighborId(nb), + static_cast<blockforest::DynamicParMetisBlockInfo::weight_t>( domain_decomposition::periodicIntersectionVolume( periodic, domain, it->first->getAABB(), - it->first->getNeighborAABB(nb).getExtended(dx)) ); + it->first->getNeighborAABB(nb).getExtended(dx))) ); } it->second = info; continue; -- GitLab