]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use cell->is_locally_owned() where possible.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 27 Sep 2011 03:13:21 +0000 (03:13 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 27 Sep 2011 03:13:21 +0000 (03:13 +0000)
git-svn-id: https://svn.dealii.org/trunk@24447 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-32/step-32.cc

index 6ef4c369c0a213f09b5ea13d93af67ddf0b73fa1..6cabd193507d1d00043abe999ec9d30f48400e9b 100644 (file)
@@ -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);

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.