From: Peter Munch Date: Sun, 15 May 2022 10:13:30 +0000 (+0200) Subject: LA:d:V: fix size in the case of shared memory X-Git-Tag: v9.4.0-rc1~214^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cb2822cfc47102fc8ef7611e330c9505802503c;p=dealii.git LA:d:V: fix size in the case of shared memory --- 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);