From 7b5dc406d580c65fff6b67a084365cf9bd49f7d3 Mon Sep 17 00:00:00 2001 From: bangerth Date: Tue, 27 Sep 2011 03:13:21 +0000 Subject: [PATCH] Use cell->is_locally_owned() where possible. git-svn-id: https://svn.dealii.org/trunk@24447 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-32/step-32.cc | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/deal.II/examples/step-32/step-32.cc b/deal.II/examples/step-32/step-32.cc index 6ef4c369c0..6cabd19350 100644 --- a/deal.II/examples/step-32/step-32.cc +++ b/deal.II/examples/step-32/step-32.cc @@ -1351,8 +1351,7 @@ namespace Step32 cell = stokes_dof_handler.begin_active(), endc = stokes_dof_handler.end(); for (; cell!=endc; ++cell) - if (cell->subdomain_id() == - Utilities::MPI::this_mpi_process(MPI_COMM_WORLD)) + if (cell->is_locally_owned()) { fe_values.reinit (cell); fe_values[velocities].get_function_values (stokes_solution, @@ -1390,8 +1389,7 @@ namespace Step32 cell = stokes_dof_handler.begin_active(), endc = stokes_dof_handler.end(); for (; cell!=endc; ++cell) - if (cell->subdomain_id() == - Utilities::MPI::this_mpi_process(MPI_COMM_WORLD)) + if (cell->is_locally_owned()) { fe_values.reinit (cell); fe_values[velocities].get_function_values (stokes_solution, @@ -1438,8 +1436,7 @@ namespace Step32 cell = temperature_dof_handler.begin_active(), endc = temperature_dof_handler.end(); for (; cell!=endc; ++cell) - if (cell->subdomain_id() == - Utilities::MPI::this_mpi_process(MPI_COMM_WORLD)) + if (cell->is_locally_owned()) { fe_values.reinit (cell); fe_values.get_function_values (old_temperature_solution, @@ -1518,8 +1515,7 @@ namespace Step32 cell = temperature_dof_handler.begin_active(), endc = temperature_dof_handler.end(); for (; cell!=endc; ++cell) - if (cell->subdomain_id() == - Utilities::MPI::this_mpi_process(MPI_COMM_WORLD)) + if (cell->is_locally_owned()) { fe_values.reinit (cell); fe_values.get_function_values (old_temperature_solution, @@ -1546,8 +1542,7 @@ namespace Step32 cell = temperature_dof_handler.begin_active(), endc = temperature_dof_handler.end(); for (; cell!=endc; ++cell) - if (cell->subdomain_id() == - Utilities::MPI::this_mpi_process(MPI_COMM_WORLD)) + if (cell->is_locally_owned()) { fe_values.reinit (cell); fe_values.get_function_values (old_temperature_solution, @@ -1774,8 +1769,7 @@ namespace Step32 endc = temperature_dof_handler.end(); for (; cell!=endc; ++cell) - if (cell->subdomain_id() == - Utilities::MPI::this_mpi_process(MPI_COMM_WORLD)) + if (cell->is_locally_owned()) { cell->get_dof_indices (local_dof_indices); fe_values.reinit (cell); -- 2.39.5