From c9e656a14bb83831c4db9a6e97d36ebeea8ac971 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Fri, 14 Feb 2020 23:55:22 -0500 Subject: [PATCH] Use a 64bit type in one other MGTransfer location This is a local index (how manyth index) and as such likely under 4 billion. I found it harder to assert or document why this cast makes sense, so I rather change the type. --- source/multigrid/mg_transfer_internal.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/multigrid/mg_transfer_internal.cc b/source/multigrid/mg_transfer_internal.cc index e6a026aa81..32bafd5a22 100644 --- a/source/multigrid/mg_transfer_internal.cc +++ b/source/multigrid/mg_transfer_internal.cc @@ -160,10 +160,10 @@ namespace internal } else { - // get the relevant dofs index - this might be more + // Get the relevant dofs index - this might be more // expensive to look up than the active indices, so we - // only do it for the local-remote case within this loop - const unsigned int relevant_idx = + // only do it for the local-remote case within this loop. + const types::global_dof_index relevant_idx = globally_relevant.index_within_set( global_dof_indices[i]); -- 2.39.5