locally_owned_dofs_per_block[1] =
locally_owned_dofs_per_subdomain[this_mpi_process].get_view(dofs_per_block, dh.n_dofs());
- if (locally_owned_dofs_per_block[0] != locally_owned_dofs_per_block[1]))
- ExcMessage("Locally owned dofs differ across blocks."));
- }
+ if (locally_owned_dofs_per_block[0] != locally_owned_dofs_per_block[1])
+ AssertThrow(false, ExcMessage("Locally owned dofs differ across blocks."));
+ }
if (Utilities::MPI::this_mpi_process (MPI_COMM_WORLD) == 0)
deallog << "OK for " << dim << "d" << std::endl;
+
DEAL:0::OK for 2d
DEAL:0::OK for 3d
+
triangulation (MPI_COMM_WORLD,
::Triangulation<dim>::none,
false,
- parallel::shared::Triangulation<dim>::partition_metis);
+ parallel::shared::Triangulation<dim>::partition_zorder);
GridGenerator::hyper_cube(triangulation, -1.0, 1.0);
FE_Q<dim> fe(1);
DEAL:0::dim=2
DEAL:0::rank=0
DEAL:0:: n_dofs=4
-DEAL:0:: n_locally_owned_dofs=4
+DEAL:0:: n_locally_owned_dofs=0
DEAL:0::dim=3
DEAL:0::rank=0
DEAL:0:: n_dofs=8
-DEAL:0:: n_locally_owned_dofs=8
+DEAL:0:: n_locally_owned_dofs=0
DEAL:1::dim=2
DEAL:1::rank=1
DEAL:1:: n_dofs=4
-DEAL:1:: n_locally_owned_dofs=0
+DEAL:1:: n_locally_owned_dofs=4
DEAL:1::dim=3
DEAL:1::rank=1
DEAL:1:: n_dofs=8
-DEAL:1:: n_locally_owned_dofs=0
+DEAL:1:: n_locally_owned_dofs=8
template <int dim>
void test ()
{
- parallel::shared::Triangulation<dim> triangulation(MPI_COMM_WORLD);
+ parallel::shared::Triangulation<dim>
+ triangulation (MPI_COMM_WORLD,
+ ::Triangulation<dim>::none,
+ false,
+ parallel::shared::Triangulation<dim>::partition_zorder);
GridGenerator::hyper_cube(triangulation, -1.0, 1.0);
hp::FECollection<dim> fe;
DEAL:0::dim=2
DEAL:0::rank=0
DEAL:0:: n_dofs=4
-DEAL:0:: n_locally_owned_dofs=4
+DEAL:0:: n_locally_owned_dofs=0
DEAL:0::dim=3
DEAL:0::rank=0
DEAL:0:: n_dofs=8
-DEAL:0:: n_locally_owned_dofs=8
+DEAL:0:: n_locally_owned_dofs=0
DEAL:1::dim=2
DEAL:1::rank=1
DEAL:1:: n_dofs=4
-DEAL:1:: n_locally_owned_dofs=0
+DEAL:1:: n_locally_owned_dofs=4
DEAL:1::dim=3
DEAL:1::rank=1
DEAL:1:: n_dofs=8
-DEAL:1:: n_locally_owned_dofs=0
+DEAL:1:: n_locally_owned_dofs=8
triangulation(MPI_COMM_WORLD,
::Triangulation<dim>::none,
false,
- parallel::shared::Triangulation<dim>::partition_metis),
+ parallel::shared::Triangulation<dim>::partition_zorder),
fe (FE_Q<dim>(1), dim),
dof_handler (triangulation),
quadrature_formula (2),
triangulation(MPI_COMM_WORLD,
::Triangulation<dim>::none,
false,
- parallel::shared::Triangulation<dim>::partition_metis),
+ parallel::shared::Triangulation<dim>::partition_zorder),
fe (FE_Q<dim>(1), dim),
dof_handler (triangulation),
quadrature_formula (2),