From: bangerth Date: Tue, 27 Sep 2011 03:13:21 +0000 (+0000) Subject: Use cell->is_locally_owned() where possible. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b5dc406d580c65fff6b67a084365cf9bd49f7d3;p=dealii-svn.git Use cell->is_locally_owned() where possible. git-svn-id: https://svn.dealii.org/trunk@24447 0785d39b-7218-0410-832d-ea1e28bc413d --- 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);