]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use new compute_... functions in tutorial steps 8298/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Fri, 7 Jun 2019 09:42:01 +0000 (11:42 +0200)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Fri, 7 Jun 2019 09:42:36 +0000 (11:42 +0200)
examples/step-18/doc/intro.dox
examples/step-18/step-18.cc
examples/step-40/step-40.cc
examples/step-55/step-55.cc
examples/step-62/step-62.cc

index 043556fe6a4d4cf2be7d1e884f0bc8daa25c32b1..1116445c2b1216d8fb2256935c5e37d75d97f0bb 100644 (file)
@@ -405,7 +405,7 @@ using the syntax
 This knowledge extends to the DoFHandler object built on such triangulations,
 which can then identify which degrees of freedom are locally owned
 (see @ref GlossLocallyOwnedDofs) via calls such as 
-DoFHandler::n_locally_owned_dofs_per_processor() and
+DoFHandler::compute_n_locally_owned_dofs_per_processor() and
 DoFTools::extract_locally_relevant_dofs(). Finally, the DataOut class
 also knows how to deal with such triangulations and will simply skip
 generating graphical output on cells not locally owned.
index 26a50cff2a987f65275283147fdb062597e3a8cb..f8a8129214c0cd5eba48ca81cf2dd754e94611c4 100644 (file)
@@ -829,7 +829,8 @@ namespace Step18
     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();
 
     // The next step is to set up constraints due to hanging nodes. This has
     // been handled many times before:
index f241fc94d952465191426dfb406c1287ea9fffc3..e8058c8cd6f6b686655ea042eb62ef26a430fd2e 100644 (file)
@@ -316,7 +316,7 @@ namespace Step40
     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 e9981a7635d841dd57bd1d389174981ce789fba7..e2d202e2380f59e1e8862640cb3ac8ba17aa83f8 100644 (file)
@@ -430,7 +430,7 @@ namespace Step55
 
       SparsityTools::distribute_sparsity_pattern(
         dsp,
-        dof_handler.locally_owned_dofs_per_processor(),
+        dof_handler.compute_locally_owned_dofs_per_processor(),
         mpi_communicator,
         locally_relevant_dofs);
 
@@ -457,7 +457,7 @@ namespace Step55
         dof_handler, coupling, dsp, constraints, false);
       SparsityTools::distribute_sparsity_pattern(
         dsp,
-        dof_handler.locally_owned_dofs_per_processor(),
+        dof_handler.compute_locally_owned_dofs_per_processor(),
         mpi_communicator,
         locally_relevant_dofs);
       preconditioner_matrix.reinit(owned_partitioning,
index 1ad27e35a5af9ab401aa01019194ab2f2fb721b6..96d8f4a9c2e7deb06e18c5bea810eebfd7d9fbc9 100644 (file)
@@ -766,7 +766,7 @@ namespace step62
     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);
 

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.