From 09b801353c054e4787943be980898ff0ed1b7755 Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Fri, 7 Feb 2020 19:46:35 +0100 Subject: [PATCH] Initialize entry 4 and 5 of IndexStorageVariants::vector_partitioner_face_variants --- include/deal.II/matrix_free/matrix_free.templates.h | 9 +++++++++ ...etup_01.with_mpi=true.with_p4est=true.mpirun=1.output | 2 ++ ...etup_01.with_mpi=true.with_p4est=true.mpirun=2.output | 4 ++++ 3 files changed, 15 insertions(+) diff --git a/include/deal.II/matrix_free/matrix_free.templates.h b/include/deal.II/matrix_free/matrix_free.templates.h index 3f317a1c95..6505aeb3e8 100644 --- a/include/deal.II/matrix_free/matrix_free.templates.h +++ b/include/deal.II/matrix_free/matrix_free.templates.h @@ -1934,6 +1934,15 @@ MatrixFree::initialize_indices( di.vector_partitioner_face_variants[4], loop_over_all_faces); } + else + { + di.vector_partitioner_face_variants[3].reset( + new Utilities::MPI::Partitioner(part.locally_owned_range(), + part.get_mpi_communicator())); + di.vector_partitioner_face_variants[4].reset( + new Utilities::MPI::Partitioner(part.locally_owned_range(), + part.get_mpi_communicator())); + } } } diff --git a/tests/matrix_free/face_setup_01.with_mpi=true.with_p4est=true.mpirun=1.output b/tests/matrix_free/face_setup_01.with_mpi=true.with_p4est=true.mpirun=1.output index c446a4ed14..86e0e01e6c 100644 --- a/tests/matrix_free/face_setup_01.with_mpi=true.with_p4est=true.mpirun=1.output +++ b/tests/matrix_free/face_setup_01.with_mpi=true.with_p4est=true.mpirun=1.output @@ -3,3 +3,5 @@ DEAL:0::main partitioner: size=2506 local_size=2506 n_ghosts=0 DEAL:0::partitioner: size=2506 local_size=2506 n_ghosts=0 DEAL:0::partitioner: size=2506 local_size=2506 n_ghosts=0 DEAL:0::partitioner: size=2506 local_size=2506 n_ghosts=0 +DEAL:0::partitioner: size=2506 local_size=2506 n_ghosts=0 +DEAL:0::partitioner: size=2506 local_size=2506 n_ghosts=0 diff --git a/tests/matrix_free/face_setup_01.with_mpi=true.with_p4est=true.mpirun=2.output b/tests/matrix_free/face_setup_01.with_mpi=true.with_p4est=true.mpirun=2.output index 96b0fa317f..205ec4c86e 100644 --- a/tests/matrix_free/face_setup_01.with_mpi=true.with_p4est=true.mpirun=2.output +++ b/tests/matrix_free/face_setup_01.with_mpi=true.with_p4est=true.mpirun=2.output @@ -3,9 +3,13 @@ DEAL:0::main partitioner: size=2506 local_size=1492 n_ghosts=273 DEAL:0::partitioner: size=2506 local_size=1492 n_ghosts=0 DEAL:0::partitioner: size=2506 local_size=1492 n_ghosts=273 DEAL:0::partitioner: size=2506 local_size=1492 n_ghosts=273 +DEAL:0::partitioner: size=2506 local_size=1492 n_ghosts=0 +DEAL:0::partitioner: size=2506 local_size=1492 n_ghosts=0 DEAL:1::main partitioner: size=2506 local_size=1014 n_ghosts=442 DEAL:1::partitioner: size=2506 local_size=1014 n_ghosts=169 DEAL:1::partitioner: size=2506 local_size=1014 n_ghosts=442 DEAL:1::partitioner: size=2506 local_size=1014 n_ghosts=442 +DEAL:1::partitioner: size=2506 local_size=1014 n_ghosts=0 +DEAL:1::partitioner: size=2506 local_size=1014 n_ghosts=0 -- 2.39.5