]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Adapt tests to the new compute_..._per_processor() functions
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Mon, 3 Jun 2019 11:34:43 +0000 (13:34 +0200)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Fri, 7 Jun 2019 09:42:35 +0000 (11:42 +0200)
62 files changed:
tests/distributed_grids/dof_handler_number_cache.cc
tests/distributed_grids/hp_dof_handler_number_cache.cc
tests/dofs/dof_handler_number_cache.cc
tests/dofs/dof_handler_number_cache_02.cc
tests/dofs/dof_tools_22a.cc
tests/dofs/sparsity_pattern_06.cc
tests/dofs/sparsity_pattern_07.cc
tests/gla/block_mat_02.cc
tests/gla/block_mat_03.cc
tests/gla/mat_03.cc
tests/gla/mat_04.cc
tests/hp/dof_handler_number_cache.cc
tests/lac/linear_operator_12.cc
tests/lac/linear_operator_12a.cc
tests/matrix_free/dg_pbc_01.cc
tests/mpi/constraints_consistent_01.cc
tests/mpi/distribute_flux_sparsity_pattern.cc
tests/mpi/dof_handler_number_cache.cc
tests/mpi/hp_step-40.cc
tests/mpi/hp_step-40_variable_01.cc
tests/mpi/interpolate_to_different_mesh_02.cc
tests/mpi/mg_02.cc
tests/mpi/p4est_2d_dofhandler_01.cc
tests/mpi/p4est_2d_dofhandler_02.cc
tests/mpi/p4est_2d_dofhandler_03.cc
tests/mpi/p4est_2d_dofhandler_04.cc
tests/mpi/p4est_2d_renumber_02.cc
tests/mpi/p4est_data_out_01.cc
tests/mpi/p4est_get_subdomain_association.cc
tests/mpi/periodicity_01.cc
tests/mpi/periodicity_02.cc
tests/mpi/periodicity_03.cc
tests/mpi/periodicity_04.cc
tests/mpi/periodicity_06.cc
tests/mpi/periodicity_07.cc
tests/mpi/renumber_cuthill_mckee.cc
tests/mpi/renumber_cuthill_mckee_02.cc
tests/mpi/step-40.cc
tests/mpi/step-40_cuthill_mckee.cc
tests/mpi/step-40_cuthill_mckee_MPI-subset.cc
tests/mpi/step-40_direct_solver.cc
tests/petsc_complex/parallel_sparse_matrix_01.cc
tests/physics/step-18-rotation_matrix.cc
tests/physics/step-18.cc
tests/sharedtria/dof_01.cc
tests/sharedtria/dof_02.cc
tests/sharedtria/dof_03.cc
tests/sharedtria/dof_04.cc
tests/sharedtria/dof_05.cc
tests/sharedtria/dof_06.cc
tests/sharedtria/hp_dof_01.cc
tests/sharedtria/hp_dof_02.cc
tests/sharedtria/hp_dof_03.cc
tests/sharedtria/hp_dof_04.cc
tests/sharedtria/hp_no_cells_01.cc
tests/sharedtria/mg_dof_02.cc
tests/sharedtria/no_cells_01.cc
tests/trilinos/direct_solver_2.cc
tests/trilinos/direct_solver_3.cc
tests/trilinos/elide_zeros.cc
tests/trilinos/renumbering_01.cc
tests/trilinos/solver_control_06.cc

index 2712a9aa9d1f62f535e52459e9f031dc843cbebd..85626e9bbf4565400be14c78ca452e0050d02566 100644 (file)
@@ -99,10 +99,10 @@ test()
 
       AssertThrow(dof_handler.n_locally_owned_dofs() == N, ExcInternalError());
       AssertThrow(dof_handler.locally_owned_dofs() == all, ExcInternalError());
-      AssertThrow(dof_handler.n_locally_owned_dofs_per_processor() ==
+      AssertThrow(dof_handler.compute_n_locally_owned_dofs_per_processor() ==
                     std::vector<types::global_dof_index>(1, N),
                   ExcInternalError());
-      AssertThrow(dof_handler.locally_owned_dofs_per_processor() ==
+      AssertThrow(dof_handler.compute_locally_owned_dofs_per_processor() ==
                     std::vector<IndexSet>(1, all),
                   ExcInternalError());
     }
index 35b27667f4c540cd1590b753ed9693c741fd240d..c24a60f0c51629394230e7e07695faada84e321d 100644 (file)
@@ -106,10 +106,10 @@ test()
 
       AssertThrow(dof_handler.n_locally_owned_dofs() == N, ExcInternalError());
       AssertThrow(dof_handler.locally_owned_dofs() == all, ExcInternalError());
-      AssertThrow(dof_handler.n_locally_owned_dofs_per_processor() ==
+      AssertThrow(dof_handler.compute_n_locally_owned_dofs_per_processor() ==
                     std::vector<types::global_dof_index>(1, N),
                   ExcInternalError());
-      AssertThrow(dof_handler.locally_owned_dofs_per_processor() ==
+      AssertThrow(dof_handler.compute_locally_owned_dofs_per_processor() ==
                     std::vector<IndexSet>(1, all),
                   ExcInternalError());
     }
index 9690056f6c43065d8bb7a219067cb2d04124b9e9..39c14497bf0770734102171a3511e35e8b2dae0e 100644 (file)
@@ -96,10 +96,10 @@ test()
 
       AssertThrow(dof_handler.n_locally_owned_dofs() == N, ExcInternalError());
       AssertThrow(dof_handler.locally_owned_dofs() == all, ExcInternalError());
-      AssertThrow(dof_handler.n_locally_owned_dofs_per_processor() ==
+      AssertThrow(dof_handler.compute_n_locally_owned_dofs_per_processor() ==
                     std::vector<types::global_dof_index>(1, N),
                   ExcInternalError());
-      AssertThrow(dof_handler.locally_owned_dofs_per_processor() ==
+      AssertThrow(dof_handler.compute_locally_owned_dofs_per_processor() ==
                     std::vector<IndexSet>(1, all),
                   ExcInternalError());
     }
index 03cde3f5f41aa7137a7f23d775f0ea690cbf8b5c..a6c9124f8774cda1ae80a3863a48b90e7195aa13 100644 (file)
@@ -95,16 +95,17 @@ test()
 
       Assert(dof_handler.n_locally_owned_dofs() == N, ExcInternalError());
       Assert(dof_handler.locally_owned_dofs() == all, ExcInternalError());
-      Assert(dof_handler.n_locally_owned_dofs_per_processor() ==
+      Assert(dof_handler.compute_n_locally_owned_dofs_per_processor() ==
                std::vector<types::global_dof_index>(1, N),
              ExcInternalError());
-      Assert(dof_handler.locally_owned_dofs_per_processor() ==
+      Assert(dof_handler.compute_locally_owned_dofs_per_processor() ==
                std::vector<IndexSet>(1, all),
              ExcInternalError());
 
       dof_handler.clear();
       deallog << "those should be zero: " << dof_handler.n_locally_owned_dofs()
-              << " " << dof_handler.n_locally_owned_dofs_per_processor().size()
+              << " "
+              << dof_handler.compute_n_locally_owned_dofs_per_processor().size()
               << " " << dof_handler.n_dofs() << std::endl;
     }
 }
index d1a5e0696849838db691202ceed1da70f539d85d..0ca80adbd0eff0cc01eef09e0c1268981fd2a136 100644 (file)
@@ -114,7 +114,7 @@ test()
                                          MPI_COMM_WORLD));
   SparsityTools::distribute_sparsity_pattern(
     sp,
-    dh.n_locally_owned_dofs_per_processor(),
+    dh.compute_n_locally_owned_dofs_per_processor(),
     MPI_COMM_WORLD,
     relevant_partitioning);
 
index 3a98472f1c14a23e72f1384277889c521601db30..be9c5c158fbe97ffa4878b4d1986541892401106 100644 (file)
@@ -138,7 +138,7 @@ main(int argc, char **argv)
   dynamic_sparsity_pattern.print(deallog.get_file_stream());
   SparsityTools::distribute_sparsity_pattern(
     dynamic_sparsity_pattern,
-    dof_handler_0.n_locally_owned_dofs_per_processor(),
+    dof_handler_0.compute_n_locally_owned_dofs_per_processor(),
     MPI_COMM_WORLD,
     dof_handler_0.locally_owned_dofs());
   dynamic_sparsity_pattern.print(deallog.get_file_stream());
index 53d154bf20f94842f462fb69291725cf7f44c5f0..2b7634beece5647951d01fd1e22a208d41cd9930 100644 (file)
@@ -155,7 +155,7 @@ main(int argc, char **argv)
   dynamic_sparsity_pattern.print(deallog.get_file_stream());
   SparsityTools::distribute_sparsity_pattern(
     dynamic_sparsity_pattern,
-    dof_handler_0.n_locally_owned_dofs_per_processor(),
+    dof_handler_0.compute_n_locally_owned_dofs_per_processor(),
     MPI_COMM_WORLD,
     dof_handler_0.locally_owned_dofs());
   dynamic_sparsity_pattern.print(deallog.get_file_stream());
index 52a091e86d1d3d13ec9e7cf62784ee76dd0b2000..db286a5c790a828bb9725da64d3b9f30fcc0f2c1 100644 (file)
@@ -125,7 +125,7 @@ test()
 
   SparsityTools::distribute_sparsity_pattern(
     sp,
-    stokes_dof_handler.locally_owned_dofs_per_processor(),
+    stokes_dof_handler.compute_locally_owned_dofs_per_processor(),
     MPI_COMM_WORLD,
     stokes_relevant_set);
 
index 51df9f44b414b2f1e4b33f830231c360edec77c1..e516a5118f47216dc35c4c8decb137657ddd0672 100644 (file)
@@ -110,7 +110,7 @@ test()
   DoFTools::make_sparsity_pattern(dof_handler, bcsp, constraints, false);
   SparsityTools::distribute_sparsity_pattern(
     bcsp,
-    dof_handler.locally_owned_dofs_per_processor(),
+    dof_handler.compute_locally_owned_dofs_per_processor(),
     MPI_COMM_WORLD,
     locally_relevant_dofs);
 
index 0b7bcd912285eed1b86ab288b8b54a54438c311c..eaafffd171893725256aa8e90aa7f5b450fcb9e2 100644 (file)
@@ -85,7 +85,7 @@ test()
                                     MPI_COMM_WORLD));
   SparsityTools::distribute_sparsity_pattern(
     sp,
-    dof_handler.n_locally_owned_dofs_per_processor(),
+    dof_handler.compute_n_locally_owned_dofs_per_processor(),
     MPI_COMM_WORLD,
     relevant);
   sp.compress();
index 35143067cc7215c20c198c672d3893ffe2daa378..8b42b91ce8cb565ff3151ab4db17d1f8ddedfc15 100644 (file)
@@ -84,7 +84,7 @@ test()
                                     MPI_COMM_WORLD));
   SparsityTools::distribute_sparsity_pattern(
     sp,
-    dof_handler.n_locally_owned_dofs_per_processor(),
+    dof_handler.compute_n_locally_owned_dofs_per_processor(),
     MPI_COMM_WORLD,
     relevant);
   sp.compress();
index 69d3a11dfc2dee91814e0ea7f742f338980c8c11..07a5813c33b853b632a0cc030c32bf9a498349cd 100644 (file)
@@ -107,10 +107,10 @@ test()
 
       AssertThrow(dof_handler.n_locally_owned_dofs() == N, ExcInternalError());
       AssertThrow(dof_handler.locally_owned_dofs() == all, ExcInternalError());
-      AssertThrow(dof_handler.n_locally_owned_dofs_per_processor() ==
+      AssertThrow(dof_handler.compute_n_locally_owned_dofs_per_processor() ==
                     std::vector<types::global_dof_index>(1, N),
                   ExcInternalError());
-      AssertThrow(dof_handler.locally_owned_dofs_per_processor() ==
+      AssertThrow(dof_handler.compute_locally_owned_dofs_per_processor() ==
                     std::vector<IndexSet>(1, all),
                   ExcInternalError());
     }
index ba5875d5a033179a52e18e13ea04a96ffdb0fbf6..05dd62b4ce3f703533d6071e9a545caa2299111b 100644 (file)
@@ -204,7 +204,7 @@ Step4<dim>::setup_system()
   DoFTools::make_sparsity_pattern(dof_handler, dsp, constraints, false);
   SparsityTools::distribute_sparsity_pattern(
     dsp,
-    dof_handler.n_locally_owned_dofs_per_processor(),
+    dof_handler.compute_n_locally_owned_dofs_per_processor(),
     MPI_COMM_WORLD,
     locally_relevant_dofs);
 
index 58b012a86089b7cb6bf7e907941cffea98c009cb..8b6aa15d5c32a1e0385bee7fc56739f5310f26c5 100644 (file)
@@ -205,7 +205,7 @@ Step4<dim>::setup_system()
   DoFTools::make_sparsity_pattern(dof_handler, dsp, constraints, false);
   SparsityTools::distribute_sparsity_pattern(
     dsp,
-    dof_handler.n_locally_owned_dofs_per_processor(),
+    dof_handler.compute_n_locally_owned_dofs_per_processor(),
     MPI_COMM_WORLD,
     locally_relevant_dofs);
 
index e8d5a5c865d9406189b8cfeef32486dfcb4a58be..fb06c63df179ae876c889404137d4d4d0cb7cb7b 100644 (file)
@@ -97,7 +97,7 @@ test()
   solver.solve(mf, sol, rhs, PreconditionIdentity());
 
   const std::vector<IndexSet> locally_owned_dofs_per_processor =
-    dof.locally_owned_dofs_per_processor();
+    dof.compute_locally_owned_dofs_per_processor();
   // gather all data at root
   if (Utilities::MPI::this_mpi_process(MPI_COMM_WORLD) == 0)
     {
index 29a0d2c067dcbec41a788152b7db956039b57076..2dae4d400839f40831739a8fe917600e5b393a19 100644 (file)
@@ -84,7 +84,7 @@ check(parallel::distributed::Triangulation<dim> &tria)
   constraints.print(deallog.get_file_stream());
   deallog << "consistent? "
           << constraints.is_consistent_in_parallel(
-               dof_handler.locally_owned_dofs_per_processor(),
+               dof_handler.compute_locally_owned_dofs_per_processor(),
                locally_active_dofs,
                MPI_COMM_WORLD,
                true)
index 0b9dcff9c9995f5bc14be99b2dafb3b5cd3fb9bf..bee6f5d62f0630b8c00896ebe22e8656ae1d27ed 100644 (file)
@@ -134,7 +134,7 @@ namespace LinearAdvectionTest
                                          flux_integral_mask);
     SparsityTools::distribute_sparsity_pattern(
       dynamic_sparsity_pattern,
-      dof_handler.n_locally_owned_dofs_per_processor(),
+      dof_handler.compute_n_locally_owned_dofs_per_processor(),
       MPI_COMM_WORLD,
       locally_relevant_dofs);
 
index 59a8feb496aa70923036c88f7d6b8bc2eb3154a3..507db4136b1dbd1750e4497bd392754dc9efb51a 100644 (file)
@@ -107,20 +107,21 @@ test()
 
       Assert(dof_handler.n_locally_owned_dofs() <= N, ExcInternalError());
       for (unsigned int i = 0;
-           i < dof_handler.n_locally_owned_dofs_per_processor().size();
+           i < dof_handler.compute_n_locally_owned_dofs_per_processor().size();
            ++i)
-        AssertThrow(dof_handler.n_locally_owned_dofs_per_processor()[i] <= N,
-                    ExcInternalError());
+        AssertThrow(
+          dof_handler.compute_n_locally_owned_dofs_per_processor()[i] <= N,
+          ExcInternalError());
       const std::vector<types::global_dof_index>
         n_locally_owned_dofs_per_processor =
-          dof_handler.n_locally_owned_dofs_per_processor();
+          dof_handler.compute_n_locally_owned_dofs_per_processor();
       AssertThrow(std::accumulate(n_locally_owned_dofs_per_processor.begin(),
                                   n_locally_owned_dofs_per_processor.end(),
                                   0U) == N,
                   ExcInternalError());
 
       const std::vector<IndexSet> locally_owned_dofs_per_processor =
-        dof_handler.locally_owned_dofs_per_processor();
+        dof_handler.compute_locally_owned_dofs_per_processor();
       IndexSet all(N), really_all(N);
       // poor man's union operation
       for (unsigned int i = 0; i < n_locally_owned_dofs_per_processor.size();
index 4ccb89600a305fdab9a7612953709498b2ef1f6b..ba44608f2cc2d5c4f8bc67b58990b92d79274a49 100644 (file)
@@ -163,14 +163,15 @@ namespace Step40
     DoFTools::make_sparsity_pattern(dof_handler, csp, constraints, false);
     SparsityTools::distribute_sparsity_pattern(
       csp,
-      dof_handler.n_locally_owned_dofs_per_processor(),
+      dof_handler.compute_n_locally_owned_dofs_per_processor(),
       mpi_communicator,
       locally_relevant_dofs);
-    system_matrix.reinit(mpi_communicator,
-                         csp,
-                         dof_handler.n_locally_owned_dofs_per_processor(),
-                         dof_handler.n_locally_owned_dofs_per_processor(),
-                         Utilities::MPI::this_mpi_process(mpi_communicator));
+    system_matrix.reinit(
+      mpi_communicator,
+      csp,
+      dof_handler.compute_n_locally_owned_dofs_per_processor(),
+      dof_handler.compute_n_locally_owned_dofs_per_processor(),
+      Utilities::MPI::this_mpi_process(mpi_communicator));
   }
 
 
@@ -341,7 +342,8 @@ namespace Step40
         for (unsigned int i = 0;
              i < Utilities::MPI::n_mpi_processes(mpi_communicator);
              ++i)
-          pcout << dof_handler.n_locally_owned_dofs_per_processor()[i] << '+';
+          pcout << dof_handler.compute_n_locally_owned_dofs_per_processor()[i]
+                << '+';
         pcout << std::endl;
 
         assemble_system();
index ed3d11456ecce312223984fb0053113ec9eda9cf..73e117f835b5cd20a19164922266b966b009a593 100644 (file)
@@ -169,14 +169,15 @@ namespace Step40
     DoFTools::make_sparsity_pattern(dof_handler, csp, constraints, false);
     SparsityTools::distribute_sparsity_pattern(
       csp,
-      dof_handler.n_locally_owned_dofs_per_processor(),
+      dof_handler.compute_n_locally_owned_dofs_per_processor(),
       mpi_communicator,
       locally_relevant_dofs);
-    system_matrix.reinit(mpi_communicator,
-                         csp,
-                         dof_handler.n_locally_owned_dofs_per_processor(),
-                         dof_handler.n_locally_owned_dofs_per_processor(),
-                         Utilities::MPI::this_mpi_process(mpi_communicator));
+    system_matrix.reinit(
+      mpi_communicator,
+      csp,
+      dof_handler.compute_n_locally_owned_dofs_per_processor(),
+      dof_handler.compute_n_locally_owned_dofs_per_processor(),
+      Utilities::MPI::this_mpi_process(mpi_communicator));
   }
 
 
@@ -344,7 +345,8 @@ namespace Step40
         for (unsigned int i = 0;
              i < Utilities::MPI::n_mpi_processes(mpi_communicator);
              ++i)
-          pcout << dof_handler.n_locally_owned_dofs_per_processor()[i] << '+';
+          pcout << dof_handler.compute_n_locally_owned_dofs_per_processor()[i]
+                << '+';
         pcout << std::endl;
 
         assemble_system();
index ae7a1fe4700fe730038536891ec5f843239efb51..c0b912a980358b70f3840830a207713bce72f4b9 100644 (file)
@@ -153,7 +153,7 @@ SeventhProblem<dim>::setup_system()
   DoFTools::make_sparsity_pattern(dof_handler, csp, constraints, false);
   SparsityTools::distribute_sparsity_pattern(
     csp,
-    dof_handler.n_locally_owned_dofs_per_processor(),
+    dof_handler.compute_n_locally_owned_dofs_per_processor(),
     mpi_communicator,
     locally_relevant_dofs);
   system_matrix.reinit(locally_owned_dofs,
index 690aa78effa691445dbbe567ff9abd572947128b..50f6ff0ab2f2bcb2a219f04ee00116afafd33285 100644 (file)
@@ -96,7 +96,7 @@ test()
 
     const std::vector<types::global_dof_index>
       n_locally_owned_dofs_per_processor =
-        dofh.n_locally_owned_dofs_per_processor();
+        dofh.compute_n_locally_owned_dofs_per_processor();
     deallog << "n_locally_owned_dofs_per_processor:" << std::endl;
     for (unsigned int i = 0; i < n_locally_owned_dofs_per_processor.size(); ++i)
       deallog << n_locally_owned_dofs_per_processor[i] << std::endl;
@@ -107,7 +107,7 @@ test()
         deallog << "level " << lvl << ":" << std::endl;
 
         const std::vector<IndexSet> vec =
-          dofh.locally_owned_mg_dofs_per_processor(lvl);
+          dofh.compute_locally_owned_mg_dofs_per_processor(lvl);
 
         for (unsigned int i = 0; i < vec.size(); ++i)
           deallog << vec[i].n_elements() << std::endl;
index d7eeb1cf43d1b241264751cdf1992ac798571212..28ebb0fcb551194fab9b159541b4b783abad9e9e 100644 (file)
@@ -57,7 +57,7 @@ test()
 
   const std::vector<types::global_dof_index>
     n_locally_owned_dofs_per_processor =
-      dofh.n_locally_owned_dofs_per_processor();
+      dofh.compute_n_locally_owned_dofs_per_processor();
   if (myid == 0)
     {
       deallog << "dofh.n_dofs() " << n_locally_owned_dofs_per_processor
index 04d80677e7d91709f57a9ac8a8df317fa814408e..71df8c5d5b143ece2b6bf2f8a2388b82b31c3f71 100644 (file)
@@ -90,7 +90,7 @@ test()
       dofh.distribute_dofs(fe);
 
       std::vector<types::global_dof_index> n_locally_owned_dofs_per_processor =
-        dofh.n_locally_owned_dofs_per_processor();
+        dofh.compute_n_locally_owned_dofs_per_processor();
       if (myid == 0)
         {
           deallog << "dofh.n_dofs() " << n_locally_owned_dofs_per_processor
index f4c89a6a0f9d97219b365f9ae82f6a9f474729e5..a0f9e534175b78e2a44e77d2636f5d4a67bc9235 100644 (file)
@@ -91,7 +91,7 @@ test()
       dofh.distribute_dofs(fe);
 
       std::vector<types::global_dof_index> n_locally_owned_dofs_per_processor =
-        dofh.n_locally_owned_dofs_per_processor();
+        dofh.compute_n_locally_owned_dofs_per_processor();
       if (myid == 0)
         {
           deallog << "dofh.n_dofs() " << n_locally_owned_dofs_per_processor
index bdb913dc637282ff5ef0051adb215d43225ab7df..6d202c2c02c2788fb9df966aa4de4633857cd0d4 100644 (file)
@@ -91,7 +91,7 @@ test()
       dofh.distribute_dofs(fe);
 
       std::vector<types::global_dof_index> n_locally_owned_dofs_per_processor =
-        dofh.n_locally_owned_dofs_per_processor();
+        dofh.compute_n_locally_owned_dofs_per_processor();
       if (myid == 0)
         {
           deallog << "dofh.n_dofs() " << n_locally_owned_dofs_per_processor
index 7202db7f8ab7a8cd1eaad2a5ba058cf0068585c5..87dacefe41496273abe88c1c254b4c1bcb2a9753 100644 (file)
@@ -81,7 +81,7 @@ test()
     DoFTools::extract_locally_active_dofs(dofh, dof_set);
 
     const std::vector<IndexSet> owned_dofs =
-      dofh.locally_owned_dofs_per_processor();
+      dofh.compute_locally_owned_dofs_per_processor();
     if (Utilities::MPI::this_mpi_process(MPI_COMM_WORLD) == 0)
       {
         dof_set.print(deallog);
index 2261db64d0b92befb52426f81188ec6f403d641c..aaa5aa3a028bbab36489829b62e3cda016d12f83 100644 (file)
@@ -75,7 +75,7 @@ test()
   data_out.build_patches();
 
   std::vector<types::global_dof_index> n_locally_owned_dofs_per_processor =
-    dofh.n_locally_owned_dofs_per_processor();
+    dofh.compute_n_locally_owned_dofs_per_processor();
   if (myid == 0)
     {
       for (unsigned int i = 0; i < n_locally_owned_dofs_per_processor.size();
index 59c4592f000b74ebeb6d272e0496ae7a2d7682cb..73d4485a44c140bf17df481a91436b8e602f26f1 100644 (file)
@@ -61,7 +61,7 @@ test()
 
   const std::vector<types::global_dof_index>
     n_locally_owned_dofs_per_processor =
-      dofh.n_locally_owned_dofs_per_processor();
+      dofh.compute_n_locally_owned_dofs_per_processor();
   if (myid == 1)
     {
       deallog << "dofh.n_dofs() " << n_locally_owned_dofs_per_processor
index ca8807bd7c933cabf44a057bc9bc907c6af973c8..7679f5a65593db9b53c031ed8268e11d2b40c7a1 100644 (file)
@@ -168,7 +168,7 @@ namespace Step40
     constraints.close();
 
     const std::vector<IndexSet> &locally_owned_dofs =
-      dof_handler.locally_owned_dofs_per_processor();
+      dof_handler.compute_locally_owned_dofs_per_processor();
     IndexSet locally_active_dofs;
     DoFTools::extract_locally_active_dofs(dof_handler, locally_active_dofs);
     AssertThrow(constraints.is_consistent_in_parallel(locally_owned_dofs,
@@ -183,14 +183,15 @@ namespace Step40
     DoFTools::make_sparsity_pattern(dof_handler, csp, constraints, false);
     SparsityTools::distribute_sparsity_pattern(
       csp,
-      dof_handler.n_locally_owned_dofs_per_processor(),
+      dof_handler.compute_n_locally_owned_dofs_per_processor(),
       mpi_communicator,
       locally_relevant_dofs);
-    system_matrix.reinit(mpi_communicator,
-                         csp,
-                         dof_handler.n_locally_owned_dofs_per_processor(),
-                         dof_handler.n_locally_owned_dofs_per_processor(),
-                         Utilities::MPI::this_mpi_process(mpi_communicator));
+    system_matrix.reinit(
+      mpi_communicator,
+      csp,
+      dof_handler.compute_n_locally_owned_dofs_per_processor(),
+      dof_handler.compute_n_locally_owned_dofs_per_processor(),
+      Utilities::MPI::this_mpi_process(mpi_communicator));
   }
 
   template <int dim>
index e05879c552f118f939eaa8888f1df8c43bb07d3b..a817b1e9357902b35a9768879c69dfb6e258e6d7 100644 (file)
@@ -398,7 +398,7 @@ namespace Step22
     constraints.close();
 
     const std::vector<IndexSet> &locally_owned_dofs =
-      dof_handler.locally_owned_dofs_per_processor();
+      dof_handler.compute_locally_owned_dofs_per_processor();
     IndexSet locally_active_dofs;
     DoFTools::extract_locally_active_dofs(dof_handler, locally_active_dofs);
     AssertThrow(constraints.is_consistent_in_parallel(locally_owned_dofs,
index 7ac8b025d3802aa2de94d5cb37902a2c28d16b66..508f817c4eee3e587afd1f79b45cad4fb45c50b5 100644 (file)
@@ -328,7 +328,7 @@ namespace Step22
     constraints.close();
 
     const std::vector<IndexSet> &locally_owned_dofs =
-      dof_handler.locally_owned_dofs_per_processor();
+      dof_handler.compute_locally_owned_dofs_per_processor();
     IndexSet locally_active_dofs;
     DoFTools::extract_locally_active_dofs(dof_handler, locally_active_dofs);
     AssertThrow(constraints.is_consistent_in_parallel(locally_owned_dofs,
index bf5530f6946122f4c8f7b17026e6280cde8c89c3..501fdab10d470425366a0ade105f62733cf728ae 100644 (file)
@@ -206,7 +206,7 @@ check(const unsigned int orientation, bool reverse)
   constraints.print(deallog.get_file_stream());
 
   const std::vector<IndexSet> locally_owned_dofs_vector =
-    dof_handler.locally_owned_dofs_per_processor();
+    dof_handler.compute_locally_owned_dofs_per_processor();
   IndexSet locally_active_dofs;
   DoFTools::extract_locally_active_dofs(dof_handler, locally_active_dofs);
   AssertThrow(constraints.is_consistent_in_parallel(locally_owned_dofs_vector,
index c8dd563a06271c401913be9ee3193fac2c4425c3..9c4b960eca47db03b7534a0fd5501ccfc5ca68f4 100644 (file)
@@ -188,7 +188,7 @@ test(const unsigned numRefinementLevels = 2)
   constraints.close();
 
   const std::vector<IndexSet> &locally_owned_dofs =
-    dof_handler.locally_owned_dofs_per_processor();
+    dof_handler.compute_locally_owned_dofs_per_processor();
   IndexSet locally_active_dofs;
   DoFTools::extract_locally_active_dofs(dof_handler, locally_active_dofs);
   AssertThrow(constraints.is_consistent_in_parallel(locally_owned_dofs,
index 59ec485f07881a2f876804b4fe5932902caa79c8..d7d0cc47fee397ac1d2b1622afd9bfe8c5df8ed5 100644 (file)
@@ -139,7 +139,7 @@ test(const unsigned numRefinementLevels = 2)
   DoFTools::extract_locally_active_dofs(dof_handler, locally_active_dofs);
 
   const std::vector<IndexSet> locally_owned_dofs =
-    dof_handler.locally_owned_dofs_per_processor();
+    dof_handler.compute_locally_owned_dofs_per_processor();
 
   std::map<types::global_dof_index, Point<dim>> supportPoints;
   DoFTools::map_dofs_to_support_points(MappingQ1<dim>(),
index 2abff36a13551ccc2501f063c9e755f4b1a7e033..4bc681096030adf557380d88a630d09e2a4ae6c7 100644 (file)
@@ -76,7 +76,7 @@ test()
             complete_renumbering.begin());
   unsigned int                offset = renumbering.size();
   const std::vector<IndexSet> dofs_per_proc =
-    dofh.locally_owned_dofs_per_processor();
+    dofh.compute_locally_owned_dofs_per_processor();
   for (unsigned int i = 1; i < nprocs; ++i)
     {
       if (myid == i)
index 3763ffb7c178c91ddf3884b8c94c4d0238b2503c..29ab2a870cbdb3bbcf5e1b80c0b01fd8b127b365 100644 (file)
@@ -79,7 +79,7 @@ test()
             complete_renumbering.begin());
   unsigned int                offset = renumbering.size();
   const std::vector<IndexSet> locally_owned_dofs_per_processor =
-    dofh.locally_owned_dofs_per_processor();
+    dofh.compute_locally_owned_dofs_per_processor();
   for (unsigned int i = 1; i < nprocs; ++i)
     {
       if (myid == i)
index c79c9c7f570deca2d0e41bbaed99a6623e1b56f0..6253d4b7a54d0306e6deee1b28f610726ef4091c 100644 (file)
@@ -157,14 +157,15 @@ namespace Step40
     DoFTools::make_sparsity_pattern(dof_handler, csp, constraints, false);
     SparsityTools::distribute_sparsity_pattern(
       csp,
-      dof_handler.n_locally_owned_dofs_per_processor(),
+      dof_handler.compute_n_locally_owned_dofs_per_processor(),
       mpi_communicator,
       locally_relevant_dofs);
-    system_matrix.reinit(mpi_communicator,
-                         csp,
-                         dof_handler.n_locally_owned_dofs_per_processor(),
-                         dof_handler.n_locally_owned_dofs_per_processor(),
-                         Utilities::MPI::this_mpi_process(mpi_communicator));
+    system_matrix.reinit(
+      mpi_communicator,
+      csp,
+      dof_handler.compute_n_locally_owned_dofs_per_processor(),
+      dof_handler.compute_n_locally_owned_dofs_per_processor(),
+      Utilities::MPI::this_mpi_process(mpi_communicator));
   }
 
 
@@ -326,7 +327,8 @@ namespace Step40
         for (unsigned int i = 0;
              i < Utilities::MPI::n_mpi_processes(mpi_communicator);
              ++i)
-          pcout << dof_handler.n_locally_owned_dofs_per_processor()[i] << '+';
+          pcout << dof_handler.compute_n_locally_owned_dofs_per_processor()[i]
+                << '+';
         pcout << std::endl;
 
         assemble_system();
index d591f17ac0fe2fb52eb954f401abc434c74076cb..5225ccaaa3acc9698d9e9e15a930d45c7c5539c4 100644 (file)
@@ -221,14 +221,15 @@ namespace Step40
     DoFTools::make_sparsity_pattern(dof_handler, csp, constraints, false);
     SparsityTools::distribute_sparsity_pattern(
       csp,
-      dof_handler.n_locally_owned_dofs_per_processor(),
+      dof_handler.compute_n_locally_owned_dofs_per_processor(),
       mpi_communicator,
       locally_relevant_dofs);
-    system_matrix.reinit(mpi_communicator,
-                         csp,
-                         dof_handler.n_locally_owned_dofs_per_processor(),
-                         dof_handler.n_locally_owned_dofs_per_processor(),
-                         Utilities::MPI::this_mpi_process(mpi_communicator));
+    system_matrix.reinit(
+      mpi_communicator,
+      csp,
+      dof_handler.compute_n_locally_owned_dofs_per_processor(),
+      dof_handler.compute_n_locally_owned_dofs_per_processor(),
+      Utilities::MPI::this_mpi_process(mpi_communicator));
   }
 
 
@@ -390,7 +391,8 @@ namespace Step40
         for (unsigned int i = 0;
              i < Utilities::MPI::n_mpi_processes(mpi_communicator);
              ++i)
-          pcout << dof_handler.n_locally_owned_dofs_per_processor()[i] << '+';
+          pcout << dof_handler.compute_n_locally_owned_dofs_per_processor()[i]
+                << '+';
         pcout << std::endl;
 
         assemble_system();
index a45c9dd935782c75ffb174389fc602f8162abd37..b6582551261dc613a38f232e681919b87605ff21 100644 (file)
@@ -222,14 +222,15 @@ namespace Step40
     DoFTools::make_sparsity_pattern(dof_handler, csp, constraints, false);
     SparsityTools::distribute_sparsity_pattern(
       csp,
-      dof_handler.n_locally_owned_dofs_per_processor(),
+      dof_handler.compute_n_locally_owned_dofs_per_processor(),
       mpi_communicator,
       locally_relevant_dofs);
-    system_matrix.reinit(mpi_communicator,
-                         csp,
-                         dof_handler.n_locally_owned_dofs_per_processor(),
-                         dof_handler.n_locally_owned_dofs_per_processor(),
-                         Utilities::MPI::this_mpi_process(mpi_communicator));
+    system_matrix.reinit(
+      mpi_communicator,
+      csp,
+      dof_handler.compute_n_locally_owned_dofs_per_processor(),
+      dof_handler.compute_n_locally_owned_dofs_per_processor(),
+      Utilities::MPI::this_mpi_process(mpi_communicator));
   }
 
 
@@ -390,7 +391,7 @@ namespace Step40
               << "      ";
         const std::vector<types::global_dof_index>
           n_locally_owned_dofs_per_processor =
-            dof_handler.n_locally_owned_dofs_per_processor();
+            dof_handler.compute_n_locally_owned_dofs_per_processor();
         for (unsigned int i = 0;
              i < Utilities::MPI::n_mpi_processes(mpi_communicator);
              ++i)
index 6c659d9a99dd9945533a28d7beafd783bcd0d51b..6b80fca5c7802c34c4766726646c65a34829f464 100644 (file)
@@ -157,14 +157,15 @@ namespace Step40
     DoFTools::make_sparsity_pattern(dof_handler, csp, constraints, false);
     SparsityTools::distribute_sparsity_pattern(
       csp,
-      dof_handler.n_locally_owned_dofs_per_processor(),
+      dof_handler.compute_n_locally_owned_dofs_per_processor(),
       mpi_communicator,
       locally_relevant_dofs);
-    system_matrix.reinit(mpi_communicator,
-                         csp,
-                         dof_handler.n_locally_owned_dofs_per_processor(),
-                         dof_handler.n_locally_owned_dofs_per_processor(),
-                         Utilities::MPI::this_mpi_process(mpi_communicator));
+    system_matrix.reinit(
+      mpi_communicator,
+      csp,
+      dof_handler.compute_n_locally_owned_dofs_per_processor(),
+      dof_handler.compute_n_locally_owned_dofs_per_processor(),
+      Utilities::MPI::this_mpi_process(mpi_communicator));
   }
 
 
@@ -304,7 +305,8 @@ namespace Step40
         for (unsigned int i = 0;
              i < Utilities::MPI::n_mpi_processes(mpi_communicator);
              ++i)
-          pcout << dof_handler.n_locally_owned_dofs_per_processor()[i] << '+';
+          pcout << dof_handler.compute_n_locally_owned_dofs_per_processor()[i]
+                << '+';
         pcout << std::endl;
 
         assemble_system();
index 9791abc2e4642d1abc3f07bb525ba7a971a34227..c2992c965748bc4acf483742664e41cd8c4ce051 100644 (file)
@@ -94,7 +94,7 @@ test(const unsigned int poly_degree = 1)
   DoFTools::make_sparsity_pattern(dof_handler, dsp, constraints, false);
   SparsityTools::distribute_sparsity_pattern(
     dsp,
-    dof_handler.n_locally_owned_dofs_per_processor(),
+    dof_handler.compute_n_locally_owned_dofs_per_processor(),
     mpi_communicator,
     locally_relevant_dofs);
 
index 064af3b5fcaeadd13beef56c3e3c32ac55ade836..94258ef85eccd398e05e50c63f0deff9ee5a25b5 100644 (file)
@@ -358,7 +358,8 @@ namespace Step18
     DoFTools::extract_locally_relevant_dofs(dof_handler, locally_relevant_dofs);
     n_local_cells = GridTools::count_cells_with_subdomain_association(
       triangulation, triangulation.locally_owned_subdomain());
-    local_dofs_per_process = dof_handler.n_locally_owned_dofs_per_processor();
+    local_dofs_per_process =
+      dof_handler.compute_n_locally_owned_dofs_per_processor();
     hanging_node_constraints.clear();
     DoFTools::make_hanging_node_constraints(dof_handler,
                                             hanging_node_constraints);
index 9dc49fec0867466308b4563d7d84d531d395622f..7c491414f389799c4cd37fb2b50e40d90f97c0ed 100644 (file)
@@ -374,7 +374,8 @@ namespace Step18
     DoFTools::extract_locally_relevant_dofs(dof_handler, locally_relevant_dofs);
     n_local_cells = GridTools::count_cells_with_subdomain_association(
       triangulation, triangulation.locally_owned_subdomain());
-    local_dofs_per_process = dof_handler.n_locally_owned_dofs_per_processor();
+    local_dofs_per_process =
+      dof_handler.compute_n_locally_owned_dofs_per_processor();
     hanging_node_constraints.clear();
     DoFTools::make_hanging_node_constraints(dof_handler,
                                             hanging_node_constraints);
index 23ffe7e3b611bc42874d57658af5f480a03acc17..a1a7fd2d37dcb4352e688827d18cebda061ed8ed 100644 (file)
@@ -106,8 +106,9 @@ test()
 
       //      deallog << "n_locally_owned_dofs_per_processor: ";
       //      std::vector<types::global_dof_index> v =
-      //      dof_handler.n_locally_owned_dofs_per_processor(); unsigned int sum
-      //      = 0; for (unsigned int i=0; i<v.size(); ++i)
+      //        dof_handler.compute_n_locally_owned_dofs_per_processor();
+      //      unsigned int sum = 0;
+      //      for (unsigned int i=0; i<v.size(); ++i)
       //        {
       //          deallog << v[i] << " ";
       //          sum += v[i];
@@ -116,7 +117,7 @@ test()
 
       const std::vector<types::global_dof_index>
         n_locally_owned_dofs_per_processor =
-          dof_handler.n_locally_owned_dofs_per_processor();
+          dof_handler.compute_n_locally_owned_dofs_per_processor();
       Assert(dof_handler.n_locally_owned_dofs() ==
                n_locally_owned_dofs_per_processor[triangulation
                                                     .locally_owned_subdomain()],
@@ -134,7 +135,7 @@ test()
              ExcInternalError());
 
       const std::vector<IndexSet> locally_owned_dofs_per_processor =
-        dof_handler.locally_owned_dofs_per_processor();
+        dof_handler.compute_locally_owned_dofs_per_processor();
       IndexSet all(N);
       for (unsigned int i = 0; i < locally_owned_dofs_per_processor.size(); ++i)
         {
index 44841b373689882a4ab3edfa780db2b8730bbc5f..de3b9d271a5c1ed0312fdb23f0ac0cf718a8d313 100644 (file)
@@ -106,8 +106,9 @@ test()
       //
       //      deallog << "n_locally_owned_dofs_per_processor: ";
       //      std::vector<types::global_dof_index> v =
-      //      dof_handler.n_locally_owned_dofs_per_processor(); unsigned int sum
-      //      = 0; for (unsigned int i=0; i<v.size(); ++i)
+      //        dof_handler.compute_n_locally_owned_dofs_per_processor();
+      //      unsigned int sum = 0;
+      //      for (unsigned int i=0; i<v.size(); ++i)
       //        {
       //          deallog << v[i] << " ";
       //          sum += v[i];
@@ -116,7 +117,7 @@ test()
 
       const std::vector<types::global_dof_index>
         n_locally_owned_dofs_per_processor =
-          dof_handler.n_locally_owned_dofs_per_processor();
+          dof_handler.compute_n_locally_owned_dofs_per_processor();
       Assert(dof_handler.n_locally_owned_dofs() ==
                n_locally_owned_dofs_per_processor[triangulation
                                                     .locally_owned_subdomain()],
@@ -134,7 +135,7 @@ test()
              ExcInternalError());
 
       const std::vector<IndexSet> locally_owned_dofs_per_processor =
-        dof_handler.locally_owned_dofs_per_processor();
+        dof_handler.compute_locally_owned_dofs_per_processor();
       IndexSet all(N);
       for (unsigned int i = 0; i < locally_owned_dofs_per_processor.size(); ++i)
         {
index 775366e5d48790385b448b5428d7a317f153fda6..58618ed41d00159296a39effee1d43138ca7eb46 100644 (file)
@@ -104,8 +104,9 @@ test()
       //
       //      deallog << "n_locally_owned_dofs_per_processor: ";
       //      std::vector<types::global_dof_index> v =
-      //      dof_handler.n_locally_owned_dofs_per_processor(); unsigned int sum
-      //      = 0; for (unsigned int i=0; i<v.size(); ++i)
+      //        dof_handler.compute_n_locally_owned_dofs_per_processor();
+      //      unsigned int sum = 0;
+      //      for (unsigned int i=0; i<v.size(); ++i)
       //        {
       //          deallog << v[i] << " ";
       //          sum += v[i];
@@ -114,7 +115,7 @@ test()
 
       const std::vector<types::global_dof_index>
         n_locally_owned_dofs_per_processor =
-          dof_handler.n_locally_owned_dofs_per_processor();
+          dof_handler.compute_n_locally_owned_dofs_per_processor();
       Assert(dof_handler.n_locally_owned_dofs() ==
                n_locally_owned_dofs_per_processor[triangulation
                                                     .locally_owned_subdomain()],
@@ -132,7 +133,7 @@ test()
              ExcInternalError());
 
       const std::vector<IndexSet> locally_owned_dofs_per_processor =
-        dof_handler.locally_owned_dofs_per_processor();
+        dof_handler.compute_locally_owned_dofs_per_processor();
       IndexSet all(N);
       for (unsigned int i = 0; i < locally_owned_dofs_per_processor.size(); ++i)
         {
index fb5386ea777020da1d416b531bc5b23f5294d7b8..d74b1c795b40d1564307645926b985e480d1175e 100644 (file)
@@ -106,8 +106,9 @@ test()
       //
       //      deallog << "n_locally_owned_dofs_per_processor: ";
       //      std::vector<types::global_dof_index> v =
-      //      dof_handler.n_locally_owned_dofs_per_processor(); unsigned int sum
-      //      = 0; for (unsigned int i=0; i<v.size(); ++i)
+      //        dof_handler.compute_n_locally_owned_dofs_per_processor();
+      //      unsigned int sum = 0;
+      //      for (unsigned int i=0; i<v.size(); ++i)
       //        {
       //          deallog << v[i] << " ";
       //          sum += v[i];
@@ -116,7 +117,7 @@ test()
 
       const std::vector<types::global_dof_index>
         n_locally_owned_dofs_per_processor =
-          dof_handler.n_locally_owned_dofs_per_processor();
+          dof_handler.compute_n_locally_owned_dofs_per_processor();
       Assert(dof_handler.n_locally_owned_dofs() ==
                n_locally_owned_dofs_per_processor[triangulation
                                                     .locally_owned_subdomain()],
@@ -134,7 +135,7 @@ test()
              ExcInternalError());
 
       const std::vector<IndexSet> locally_owned_dofs_per_processor =
-        dof_handler.locally_owned_dofs_per_processor();
+        dof_handler.compute_locally_owned_dofs_per_processor();
       IndexSet all(N);
       for (unsigned int i = 0; i < locally_owned_dofs_per_processor.size(); ++i)
         {
index 25a784fc25977b6eb15a482f35681072b166b2a4..ddd7d7a5683ba14f2af34923d7b8d28560c05edd 100644 (file)
@@ -57,9 +57,9 @@ compare_meshes(DoFHandler<dim> &shared_dof_handler,
   shared_dofs.print(deallog.get_file_stream());
 
   std::vector<IndexSet> shared_dofs_per_proc =
-    shared_dof_handler.locally_owned_dofs_per_processor();
+    shared_dof_handler.compute_locally_owned_dofs_per_processor();
   std::vector<IndexSet> distributed_dofs_per_proc =
-    distributed_dof_handler.locally_owned_dofs_per_processor();
+    distributed_dof_handler.compute_locally_owned_dofs_per_processor();
   for (unsigned int i = 0; i < Utilities::MPI::n_mpi_processes(MPI_COMM_WORLD);
        ++i)
     Assert(shared_dofs_per_proc[i] == distributed_dofs_per_proc[i],
index ad7f2c0cd15dae9510777d8b7b965375af959d69..715b4b6d07a45a596fb74cb5330016cb2a0b802c 100644 (file)
@@ -73,7 +73,7 @@ test()
           << dof_handler.n_locally_owned_dofs() << std::endl;
 
   std::vector<IndexSet> shared_dofs_per_proc =
-    dof_handler.locally_owned_dofs_per_processor();
+    dof_handler.compute_locally_owned_dofs_per_processor();
   for (unsigned int i = 0; i < Utilities::MPI::n_mpi_processes(MPI_COMM_WORLD);
        ++i)
     shared_dofs_per_proc[i].print(deallog.get_file_stream());
index 1c255bad18edc43367e0576b2120003d78f75a1c..45539023d14b6f14dd1ca3f4ba7f27f94e46cf77 100644 (file)
@@ -111,8 +111,9 @@ test()
 
       //      deallog << "n_locally_owned_dofs_per_processor: ";
       //      std::vector<types::global_dof_index> v =
-      //      dof_handler.n_locally_owned_dofs_per_processor(); unsigned int sum
-      //      = 0; for (unsigned int i=0; i<v.size(); ++i)
+      //        dof_handler.compute_n_locally_owned_dofs_per_processor();
+      //      unsigned int sum = 0;
+      //      for (unsigned int i=0; i<v.size(); ++i)
       //        {
       //          deallog << v[i] << " ";
       //          sum += v[i];
@@ -121,7 +122,7 @@ test()
 
       const std::vector<types::global_dof_index>
         n_locally_owned_dofs_per_processor =
-          dof_handler.n_locally_owned_dofs_per_processor();
+          dof_handler.compute_n_locally_owned_dofs_per_processor();
       Assert(dof_handler.n_locally_owned_dofs() ==
                n_locally_owned_dofs_per_processor[triangulation
                                                     .locally_owned_subdomain()],
@@ -139,7 +140,7 @@ test()
              ExcInternalError());
 
       const std::vector<IndexSet> locally_owned_dofs_per_processor =
-        dof_handler.locally_owned_dofs_per_processor();
+        dof_handler.compute_locally_owned_dofs_per_processor();
       IndexSet all(N);
       for (unsigned int i = 0; i < locally_owned_dofs_per_processor.size(); ++i)
         {
index 4a614908202e9f8884fac00cfe8e3a1030f5c0a5..6aaee1de86265640cfda5684529f7194a86afe7b 100644 (file)
@@ -112,8 +112,9 @@ test()
       //
       //      deallog << "n_locally_owned_dofs_per_processor: ";
       //      std::vector<types::global_dof_index> v =
-      //      dof_handler.n_locally_owned_dofs_per_processor(); unsigned int sum
-      //      = 0; for (unsigned int i=0; i<v.size(); ++i)
+      //        dof_handler.compute_n_locally_owned_dofs_per_processor();
+      //      unsigned int sum = 0;
+      //      for (unsigned int i=0; i<v.size(); ++i)
       //        {
       //          deallog << v[i] << " ";
       //          sum += v[i];
@@ -122,7 +123,7 @@ test()
 
       const std::vector<types::global_dof_index>
         n_locally_owned_dofs_per_processor =
-          dof_handler.n_locally_owned_dofs_per_processor();
+          dof_handler.compute_n_locally_owned_dofs_per_processor();
       Assert(dof_handler.n_locally_owned_dofs() ==
                n_locally_owned_dofs_per_processor[triangulation
                                                     .locally_owned_subdomain()],
@@ -140,7 +141,7 @@ test()
              ExcInternalError());
 
       const std::vector<IndexSet> locally_owned_dofs_per_processor =
-        dof_handler.locally_owned_dofs_per_processor();
+        dof_handler.compute_locally_owned_dofs_per_processor();
       IndexSet all(N);
       for (unsigned int i = 0; i < locally_owned_dofs_per_processor.size(); ++i)
         {
index 87bf7379b831d4c018c310726a2edd2a93670927..a410b009e589711eac0034501f59fc2ad1ecc701 100644 (file)
@@ -109,8 +109,9 @@ test()
       //
       //      deallog << "n_locally_owned_dofs_per_processor: ";
       //      std::vector<types::global_dof_index> v =
-      //      dof_handler.n_locally_owned_dofs_per_processor(); unsigned int sum
-      //      = 0; for (unsigned int i=0; i<v.size(); ++i)
+      //        dof_handler.compute_n_locally_owned_dofs_per_processor();
+      //      unsigned int sum = 0;
+      //      for (unsigned int i=0; i<v.size(); ++i)
       //        {
       //          deallog << v[i] << " ";
       //          sum += v[i];
@@ -119,7 +120,7 @@ test()
 
       const std::vector<types::global_dof_index>
         n_locally_owned_dofs_per_processor =
-          dof_handler.n_locally_owned_dofs_per_processor();
+          dof_handler.compute_n_locally_owned_dofs_per_processor();
       Assert(dof_handler.n_locally_owned_dofs() ==
                n_locally_owned_dofs_per_processor[triangulation
                                                     .locally_owned_subdomain()],
@@ -137,7 +138,7 @@ test()
              ExcInternalError());
 
       const std::vector<IndexSet> locally_owned_dofs_per_processor =
-        dof_handler.locally_owned_dofs_per_processor();
+        dof_handler.compute_locally_owned_dofs_per_processor();
       IndexSet all(N);
       for (unsigned int i = 0; i < locally_owned_dofs_per_processor.size(); ++i)
         {
index e37e13d7eff1c700d1e3149df3122fef1b3dc278..7c56973b12aaae98c9d9f6ec202b415dfcd3e0ab 100644 (file)
@@ -112,8 +112,9 @@ test()
       //
       //      deallog << "n_locally_owned_dofs_per_processor: ";
       //      std::vector<types::global_dof_index> v =
-      //      dof_handler.n_locally_owned_dofs_per_processor(); unsigned int sum
-      //      = 0; for (unsigned int i=0; i<v.size(); ++i)
+      //        dof_handler.compute_n_locally_owned_dofs_per_processor();
+      //      unsigned int sum = 0;
+      //      for (unsigned int i=0; i<v.size(); ++i)
       //        {
       //          deallog << v[i] << " ";
       //          sum += v[i];
@@ -122,7 +123,7 @@ test()
 
       const std::vector<types::global_dof_index>
         n_locally_owned_dofs_per_processor =
-          dof_handler.n_locally_owned_dofs_per_processor();
+          dof_handler.compute_n_locally_owned_dofs_per_processor();
       Assert(dof_handler.n_locally_owned_dofs() ==
                n_locally_owned_dofs_per_processor[triangulation
                                                     .locally_owned_subdomain()],
@@ -140,7 +141,7 @@ test()
              ExcInternalError());
 
       const std::vector<IndexSet> locally_owned_dofs_per_processor =
-        dof_handler.locally_owned_dofs_per_processor();
+        dof_handler.compute_locally_owned_dofs_per_processor();
       IndexSet all(N);
       for (unsigned int i = 0; i < locally_owned_dofs_per_processor.size(); ++i)
         {
index 5eee549c6d6756615e74cb8d3cb0179967a7c156..a2ec552783f2e3cafa9d234859ed73eeeff61f11 100644 (file)
@@ -80,7 +80,7 @@ test()
 
   deallog << "n_locally_owned_dofs_per_processor: ";
   std::vector<types::global_dof_index> v =
-    dof_handler.n_locally_owned_dofs_per_processor();
+    dof_handler.compute_n_locally_owned_dofs_per_processor();
   unsigned int sum = 0;
   for (unsigned int i = 0; i < v.size(); ++i)
     {
@@ -105,7 +105,7 @@ test()
   Assert(std::accumulate(v.begin(), v.end(), 0U) == N, ExcInternalError());
 
   std::vector<IndexSet> locally_owned_dofs_per_processor =
-    dof_handler.locally_owned_dofs_per_processor();
+    dof_handler.compute_locally_owned_dofs_per_processor();
   IndexSet all(N);
   for (unsigned int i = 0; i < locally_owned_dofs_per_processor.size(); ++i)
     {
index 9d753f29a710df0a2e5c285d63a1c6c402dd86c4..83b6712eef746576b1228bee971fb09585d9cb53 100644 (file)
@@ -52,7 +52,7 @@ write_dof_data(DoFHandler<dim> &dof_handler)
   for (unsigned int lvl = 0; lvl < n_levels; ++lvl)
     {
       std::vector<IndexSet> dof_index_per_proc =
-        dof_handler.locally_owned_mg_dofs_per_processor(lvl);
+        dof_handler.compute_locally_owned_mg_dofs_per_processor(lvl);
       for (unsigned int i = 0; i < dof_index_per_proc.size(); ++i)
         dof_index_per_proc[i].print(deallog);
 
index 6087a92294392c3475daeab933edb499b5030a7a..661c37e96ed123ca612620a377676cf6cbd00565 100644 (file)
@@ -74,7 +74,7 @@ test()
 
   deallog << "n_locally_owned_dofs_per_processor: ";
   const std::vector<types::global_dof_index> v =
-    dof_handler.n_locally_owned_dofs_per_processor();
+    dof_handler.compute_n_locally_owned_dofs_per_processor();
   unsigned int sum = 0;
   for (unsigned int i = 0; i < v.size(); ++i)
     {
@@ -87,7 +87,7 @@ test()
   deallog << std::endl;
 
   Assert(dof_handler.n_locally_owned_dofs() ==
-           dof_handler.n_locally_owned_dofs_per_processor()
+           dof_handler.compute_n_locally_owned_dofs_per_processor()
              [triangulation.locally_owned_subdomain()],
          ExcInternalError());
   Assert(dof_handler.n_locally_owned_dofs() ==
@@ -98,12 +98,12 @@ test()
 
   Assert(dof_handler.n_locally_owned_dofs() <= N, ExcInternalError());
   const std::vector<types::global_dof_index> n_owned_dofs =
-    dof_handler.n_locally_owned_dofs_per_processor();
+    dof_handler.compute_n_locally_owned_dofs_per_processor();
   Assert(std::accumulate(n_owned_dofs.begin(), n_owned_dofs.end(), 0U) == N,
          ExcInternalError());
 
   const std::vector<IndexSet> owned_dofs =
-    dof_handler.locally_owned_dofs_per_processor();
+    dof_handler.compute_locally_owned_dofs_per_processor();
   IndexSet all(N);
   for (unsigned int i = 0; i < owned_dofs.size(); ++i)
     {
index 0ec5c7110574c8a8f34ae01341ec968f12b12829..74cd532974ef6b401d19b86e76b0cc2c852d4966 100644 (file)
@@ -203,7 +203,7 @@ Step4<dim>::setup_system()
   DoFTools::make_sparsity_pattern(dof_handler, dsp, constraints, false);
   SparsityTools::distribute_sparsity_pattern(
     dsp,
-    dof_handler.n_locally_owned_dofs_per_processor(),
+    dof_handler.compute_n_locally_owned_dofs_per_processor(),
     MPI_COMM_WORLD,
     locally_relevant_dofs);
 
index e4c44953c72ba08c9fbbb79a14f8bfe7d1a20820..e4f4b336b6ac2e5d33e0395517763b9f32063e31 100644 (file)
@@ -165,7 +165,7 @@ Step4<dim>::setup_system()
   DoFTools::make_sparsity_pattern(dof_handler, dsp, constraints, false);
   SparsityTools::distribute_sparsity_pattern(
     dsp,
-    dof_handler.n_locally_owned_dofs_per_processor(),
+    dof_handler.compute_n_locally_owned_dofs_per_processor(),
     MPI_COMM_WORLD,
     locally_relevant_dofs);
 
index a93bacc239839074595fbc78aa4bedc3a6d6eed3..b1f84bee9604ba1c8eb6e9b8a8acd841ec68a66a 100644 (file)
@@ -173,7 +173,7 @@ namespace LinearAdvectionTest
 
     SparsityTools::distribute_sparsity_pattern(
       dynamic_sparsity_pattern,
-      dof_handler.n_locally_owned_dofs_per_processor(),
+      dof_handler.compute_n_locally_owned_dofs_per_processor(),
       MPI_COMM_WORLD,
       locally_relevant_dofs);
 
index 7e2bed8179f70583e8d04c4825fba4382dafba57..d76bb284850630bfe7f36b3a397050a09dd13664 100644 (file)
@@ -127,7 +127,7 @@ private:
                                     /*keep constrained dofs*/ false);
     SparsityTools::distribute_sparsity_pattern(
       sparsity_pattern,
-      dof_handler.n_locally_owned_dofs_per_processor(),
+      dof_handler.compute_n_locally_owned_dofs_per_processor(),
       MPI_COMM_WORLD,
       locally_relevant_dofs);
 
index 8af5b8e8553fe554dae760e2d89b40e549cec79d..d1eecce171b80cb70f5ebd3b0f4cfec48e6fafca 100644 (file)
@@ -220,7 +220,7 @@ Test_Solver_Output::setup_system()
 
   SparsityTools::distribute_sparsity_pattern(
     dsp,
-    dof_handler.n_locally_owned_dofs_per_processor(),
+    dof_handler.compute_n_locally_owned_dofs_per_processor(),
     mpi_comm,
     locally_relevant_dofs);
 

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.