From 6cb2822cfc47102fc8ef7611e330c9505802503c Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Sun, 15 May 2022 12:13:30 +0200 Subject: [PATCH] LA:d:V: fix size in the case of shared memory --- include/deal.II/lac/la_parallel_vector.templates.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/deal.II/lac/la_parallel_vector.templates.h b/include/deal.II/lac/la_parallel_vector.templates.h index f1eca66944..97fd82bd54 100644 --- a/include/deal.II/lac/la_parallel_vector.templates.h +++ b/include/deal.II/lac/la_parallel_vector.templates.h @@ -171,10 +171,9 @@ namespace LinearAlgebra const std::size_t align_by = 64; - std::size_t s = - ((new_alloc_size * sizeof(Number) + align_by - 1) / - sizeof(Number)) * - sizeof(Number); + std::size_t s = ((new_alloc_size * sizeof(Number) + align_by) / + sizeof(Number)) * + sizeof(Number); ierr = MPI_Win_allocate_shared( s, sizeof(Number), info, comm_shared, &data_this, &mpi_window); -- 2.39.5