diff --git a/src/pe/amr/weight_assignment/MetisAssignmentFunctor.h b/src/pe/amr/weight_assignment/MetisAssignmentFunctor.h index 1c6a29dec33cdfa224ceeaa5f8a16fb5c2698e44..dd1fdac59c24ae7d751fc9014236109ccaedfca3 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;