]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid the use of deprecated constructors.
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 17 Nov 2022 00:19:37 +0000 (17:19 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 17 Nov 2022 15:44:39 +0000 (08:44 -0700)
19 files changed:
examples/step-17/step-17.cc
examples/step-18/step-18.cc
tests/arpack/parpack_advection_diffusion_petsc.cc
tests/arpack/step-36_parpack.cc
tests/fe/fe_enriched_color_07.cc
tests/mpi/hp_step-40.cc
tests/mpi/hp_step-40_variable_01.cc
tests/mpi/periodicity_01.cc
tests/mpi/step-40.cc
tests/mpi/step-40_cuthill_mckee.cc
tests/mpi/step-40_cuthill_mckee_MPI-subset.cc
tests/petsc/bddc.cc
tests/physics/step-18-rotation_matrix.cc
tests/physics/step-18.cc
tests/simplex/step-17.cc
tests/simplex/step-18.cc
tests/slepc/step-36_parallel.cc
tests/slepc/step-36_parallel_02.cc
tests/slepc/step-36_parallel_03.cc

index b895593e2488351f1301d51a3ab2b459bafdd7ea..144606dde93ece8fcae0511ef370306476748aa5 100644 (file)
@@ -616,7 +616,7 @@ namespace Step17
   unsigned int ElasticProblem<dim>::solve()
   {
     SolverControl solver_control(solution.size(), 1e-8 * system_rhs.l2_norm());
-    PETScWrappers::SolverCG cg(solver_control, mpi_communicator);
+    PETScWrappers::SolverCG cg(solver_control);
 
     PETScWrappers::PreconditionBlockJacobi preconditioner(system_matrix);
 
index 9445b63bbfeba6c81d2bbf67d620a46ec52c9cd2..3a1b65cac065fada39f8af659602355edea52a14 100644 (file)
@@ -1122,7 +1122,7 @@ namespace Step18
     SolverControl solver_control(dof_handler.n_dofs(),
                                  1e-16 * system_rhs.l2_norm());
 
-    PETScWrappers::SolverCG cg(solver_control, mpi_communicator);
+    PETScWrappers::SolverCG cg(solver_control);
 
     PETScWrappers::PreconditionBlockJacobi preconditioner(system_matrix);
 
index 7bb26b16fb9079a84854035c4ef3f88676805157..2d902f9cb4450f612856745de2e948470bb79d30 100644 (file)
@@ -114,7 +114,7 @@ public:
   PETScInverse(const dealii::PETScWrappers::MatrixBase &A,
                dealii::SolverControl &                  cn,
                const MPI_Comm &mpi_communicator = PETSC_COMM_SELF)
-    : solver(cn, mpi_communicator)
+    : solver(cn)
     , matrix(A)
     , preconditioner(matrix)
   {}
index af36f951b3f65dd70b90488851e00af0987641b6..f079f2ad2a240dd362c0cff03aea228a0debd9b3 100644 (file)
@@ -117,7 +117,7 @@ public:
   PETScInverse(const dealii::PETScWrappers::MatrixBase &A,
                dealii::SolverControl &                  cn,
                const MPI_Comm &mpi_communicator = PETSC_COMM_SELF)
-    : solver(cn, mpi_communicator)
+    : solver(cn)
     , matrix(A)
     , preconditioner(matrix)
   {}
index 482d9ee56814487d4bb0a17e15b2e550e7c5b941..3a3d4e2110519e1c30538ca7fbf99df4f27beb03 100644 (file)
@@ -1576,7 +1576,7 @@ LaplaceProblem<dim>::solve()
 {
   pcout << "...solving" << std::endl;
   SolverControl solver_control(prm.max_iterations, prm.tolerance, false, false);
-  PETScWrappers::SolverCG cg(solver_control, mpi_communicator);
+  PETScWrappers::SolverCG cg(solver_control);
 
   PETScWrappers::PreconditionSOR preconditioner(system_matrix);
 
index 650cacd6bcd98d9ddabd6fc7275a818b79584fa6..b95e11d156d56144c2ca424a44987a9856bc988c 100644 (file)
@@ -261,7 +261,7 @@ namespace Step40
 
     SolverControl solver_control(dof_handler.n_dofs(), 1e-12);
 
-    PETScWrappers::SolverCG solver(solver_control, mpi_communicator);
+    PETScWrappers::SolverCG solver(solver_control);
 
 #ifndef PETSC_USE_COMPLEX
     PETScWrappers::PreconditionBoomerAMG preconditioner(
index 22cf4b086716f6a069f5d60cf0007b58c8398c74..2c2ef78a8e6a00ee5f6c3781893771598f1e0c86 100644 (file)
@@ -267,7 +267,7 @@ namespace Step40
 
     SolverControl solver_control(dof_handler.n_dofs(), 1e-12);
 
-    PETScWrappers::SolverCG solver(solver_control, mpi_communicator);
+    PETScWrappers::SolverCG solver(solver_control);
 
 #ifndef PETSC_USE_COMPLEX
     PETScWrappers::PreconditionBoomerAMG preconditioner(
index 78da7d5c7bdfd61c018762617ef2cfcce699b239..9638f89052c9a7c3ffb905e79be13a5fe90186b3 100644 (file)
@@ -277,7 +277,7 @@ namespace Step40
 
     SolverControl solver_control(dof_handler.n_dofs(), 1e-12, false, false);
 
-    PETScWrappers::SolverCG solver(solver_control, mpi_communicator);
+    PETScWrappers::SolverCG solver(solver_control);
 
 #ifndef PETSC_USE_COMPLEX
     // Ask for a symmetric preconditioner by setting the first parameter in
index d25fc17ccf4de9cfc414212679a99a5af78fba45..a30ddc4e46dbb5c0b694e49d41f5c9973b3d3ab8 100644 (file)
@@ -246,7 +246,7 @@ namespace Step40
 
     SolverControl solver_control(dof_handler.n_dofs(), 1e-12);
 
-    PETScWrappers::SolverCG solver(solver_control, mpi_communicator);
+    PETScWrappers::SolverCG solver(solver_control);
 
 #ifndef PETSC_USE_COMPLEX
     PETScWrappers::PreconditionBoomerAMG preconditioner(
index 8a6b31d3fc590148073a30cece14945e5e214a28..00ec8af93f99d240c255eefe8e146c64abf058ca 100644 (file)
@@ -308,7 +308,7 @@ namespace Step40
 
     SolverControl solver_control(dof_handler.n_dofs(), 1e-12);
 
-    PETScWrappers::SolverCG solver(solver_control, mpi_communicator);
+    PETScWrappers::SolverCG solver(solver_control);
 
 #ifndef PETSC_USE_COMPLEX
     PETScWrappers::PreconditionBoomerAMG preconditioner(
index cbda9619ce35fe7713575708609a5ac51c4bef8d..17e1dd48c291991fe71696e692462a079e5c3aa4 100644 (file)
@@ -309,7 +309,7 @@ namespace Step40
 
     SolverControl solver_control(dof_handler.n_dofs(), 1e-12);
 
-    PETScWrappers::SolverCG solver(solver_control, mpi_communicator);
+    PETScWrappers::SolverCG solver(solver_control);
 
 #ifndef PETSC_USE_COMPLEX
     PETScWrappers::PreconditionBoomerAMG preconditioner(
index b3fbaafa0f20519f2560ae6f1b931855b45d51a1..9a3fb8ba8f4ecbf59e5030052e3020d401f8078d 100644 (file)
@@ -156,8 +156,8 @@ main(int argc, char *argv[])
 
   SolverControl solver_control(dof_handler.n_dofs(), 1e-12);
 
-  PETScWrappers::SolverCG            solver(solver_control, MPI_COMM_WORLD);
-  PETScWrappers::PreconditionBDDC<2> preconditioner;
+  PETScWrappers::SolverCG                            solver(solver_control);
+  PETScWrappers::PreconditionBDDC<2>                 preconditioner;
   PETScWrappers::PreconditionBDDC<2>::AdditionalData data;
 
   // Now we setup the dof coordinates if a sufficiently new PETSc is used
index 0fc9d60eded88323c66690b5fde8ff989ce40fba..130238b4c2e987151a25312fe549725c8f0c1632 100644 (file)
@@ -482,7 +482,7 @@ namespace Step18
                                  1e-16 * system_rhs.l2_norm(),
                                  false,
                                  false);
-    PETScWrappers::SolverCG                cg(solver_control, mpi_communicator);
+    PETScWrappers::SolverCG                cg(solver_control);
     PETScWrappers::PreconditionBlockJacobi preconditioner(system_matrix);
     cg.solve(system_matrix,
              distributed_incremental_displacement,
index 1880f4addf4270faedf622d497f5fa57113fd8b3..212b2ff1499f21d2e4b3a33af4af3fca37a2ef39 100644 (file)
@@ -498,7 +498,7 @@ namespace Step18
                                  1e-16 * system_rhs.l2_norm(),
                                  false,
                                  false);
-    PETScWrappers::SolverCG                cg(solver_control, mpi_communicator);
+    PETScWrappers::SolverCG                cg(solver_control);
     PETScWrappers::PreconditionBlockJacobi preconditioner(system_matrix);
     cg.solve(system_matrix,
              distributed_incremental_displacement,
index 9a1a86bc3bf693a85578e3a9be2db10154b46dd0..c20aa103af2825ded63d140e646f18e75e58c7aa 100644 (file)
@@ -327,7 +327,7 @@ namespace Step17
   ElasticProblem<dim>::solve()
   {
     SolverControl solver_control(solution.size(), 1e-8 * system_rhs.l2_norm());
-    PETScWrappers::SolverCG cg(solver_control, mpi_communicator);
+    PETScWrappers::SolverCG cg(solver_control);
 
     // PreconditionBlockJacobi depends on the processor count
     PETScWrappers::PreconditionBlockJacobi preconditioner(system_matrix);
index 37ba34f885ca14a7952374ad459dbcad29f6bd2d..57af8e2090cea1f10dc2c3a17a6776825825e641 100644 (file)
@@ -701,7 +701,7 @@ namespace Step18
                                  1e-16 * system_rhs.l2_norm());
 
 #ifdef DEAL_II_WITH_PETSC
-    PETScWrappers::SolverCG cg(solver_control, mpi_communicator);
+    PETScWrappers::SolverCG cg(solver_control);
 
     PETScWrappers::PreconditionBlockJacobi preconditioner(system_matrix);
 
index 61cac41df3bf28b317880e988d497d8976d187f8..030e59b62c1fbcd611e80b33e93a30b67ad00b8a 100644 (file)
@@ -247,8 +247,7 @@ test(std::string solver_name, std::string preconditioner_name)
                                                 1e-15,
                                                 /*log_history*/ false,
                                                 /*log_results*/ false);
-    PETScWrappers::SolverCG linear_solver(linear_solver_control,
-                                          mpi_communicator);
+    PETScWrappers::SolverCG linear_solver(linear_solver_control);
     linear_solver.initialize(*preconditioner);
 
     dealii::SolverControl solver_control(100,
index 676c5144fece5bbeb1af151e11b46bf6a0c2f218..b7cc1797d87e603d23e0fae6fa8ac4eb58fc29d0 100644 (file)
@@ -247,8 +247,7 @@ test(std::string solver_name, std::string preconditioner_name)
                                                 1e-15,
                                                 /*log_history*/ false,
                                                 /*log_results*/ false);
-    PETScWrappers::SolverCG linear_solver(linear_solver_control,
-                                          mpi_communicator);
+    PETScWrappers::SolverCG linear_solver(linear_solver_control);
     linear_solver.initialize(*preconditioner);
 
     dealii::SolverControl solver_control(100,
index 20cde958a264c712b0521a57d464f31e5c805703..52f5ba75329c9642182f6e5bf5d5e8b443c170c3 100644 (file)
@@ -247,8 +247,7 @@ test(std::string solver_name, std::string preconditioner_name)
                                                 1e-15,
                                                 /*log_history*/ false,
                                                 /*log_results*/ false);
-    PETScWrappers::SolverCG linear_solver(linear_solver_control,
-                                          mpi_communicator);
+    PETScWrappers::SolverCG linear_solver(linear_solver_control);
     linear_solver.initialize(*preconditioner);
 
     dealii::SolverControl solver_control(100,

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.