]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Replace ConstraintMatrix by AffineConstraints in tests 7347/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 13 Oct 2018 22:09:58 +0000 (00:09 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 13 Oct 2018 22:15:17 +0000 (00:15 +0200)
13 files changed:
tests/cuda/matrix_free_matrix_vector_01.cu
tests/cuda/matrix_free_matrix_vector_02.cu
tests/cuda/matrix_free_matrix_vector_04.cu
tests/examples/step-56.cc
tests/fe/br_approximation_01.cc
tests/fe/fe_br.cc
tests/fe/fe_enriched_color_05.cc
tests/fe/fe_enriched_color_07.cc
tests/fe/fe_enriched_color_08.cc
tests/integrators/assembler_simple_system_inhom_01.cc
tests/matrix_free/cell_categorization_02.cc
tests/mpi/hp_unify_dof_indices_07.cc
tests/optimization/step-44.h

index 3b81b7d43172febbdea08ee8d292bd7db0592536..4c9dbb4c7d70227a9ecfbbd6645d9f73bb3113a5 100644 (file)
@@ -38,7 +38,7 @@ test()
   FE_Q<dim>       fe(fe_degree);
   DoFHandler<dim> dof(tria);
   dof.distribute_dofs(fe);
-  ConstraintMatrix constraints;
+  AffineConstraints<double> constraints;
   constraints.close();
 
   do_test<dim, fe_degree, double, fe_degree + 1>(dof, constraints);
index e42e6fb7d44d2aab1b177095a2551d13c1963f9a..97b6d043692fb2a82f817e7e66efd518b31e5ec5 100644 (file)
@@ -38,7 +38,7 @@ test()
   FE_Q<dim>       fe(fe_degree);
   DoFHandler<dim> dof(tria);
   dof.distribute_dofs(fe);
-  ConstraintMatrix constraints;
+  AffineConstraints<double> constraints;
   VectorTools::interpolate_boundary_values(dof,
                                            0,
                                            Functions::ZeroFunction<dim>(),
index f8edb227be28140585c80621db6869f9ea914607..53db3bb6fca9dd7bb15dcb801a969c11389092b6 100644 (file)
@@ -41,7 +41,7 @@ test()
   FE_Q<dim>       fe(fe_degree);
   DoFHandler<dim> dof(tria);
   dof.distribute_dofs(fe);
-  ConstraintMatrix constraints;
+  AffineConstraints<double> constraints;
   constraints.close();
 
   do_test<dim, fe_degree, double, fe_degree + 1>(dof, constraints);
index 12ede54112c7543058cde3a04fb53d6eee77dd75..959bbc2f301c29692aad30f15fa1483b53570c82 100644 (file)
@@ -441,7 +441,7 @@ namespace Step56
     DoFHandler<dim>    dof_handler;
     DoFHandler<dim>    velocity_dof_handler;
 
-    ConstraintMatrix constraints;
+    AffineConstraints<double> constraints;
 
     BlockSparsityPattern      sparsity_pattern;
     BlockSparseMatrix<double> system_matrix;
@@ -746,9 +746,9 @@ namespace Step56
 
     std::vector<SymmetricTensor<2, dim>> symgrad_phi_u(dofs_per_cell);
 
-    std::vector<ConstraintMatrix> boundary_constraints(
+    std::vector<AffineConstraints<double>> boundary_constraints(
       triangulation.n_levels());
-    std::vector<ConstraintMatrix> boundary_interface_constraints(
+    std::vector<AffineConstraints<double>> boundary_interface_constraints(
       triangulation.n_levels());
     for (unsigned int level = 0; level < triangulation.n_levels(); ++level)
       {
index 22a9532a64796a2104b2fb2b97faae181a09ebb8..0e4758d85837cf6c48a8767e662c1737fca14034 100644 (file)
@@ -46,7 +46,6 @@ std::ofstream logfile("output");
 #include <deal.II/grid/grid_generator.h>
 #include <deal.II/grid/grid_out.h>
 
-#include <deal.II/lac/constraint_matrix.h>
 #include <deal.II/lac/precondition.h>
 #include <deal.II/lac/solver_cg.h>
 #include <deal.II/lac/sparse_matrix.h>
@@ -341,7 +340,7 @@ double TestProjection(Mapping<2> &mapping, DoFHandler<2> *dof_handler)
       TestPoly<2> pol(deg);
 
       // Project solution onto BR FE field
-      ConstraintMatrix hn_constraints;
+      AffineConstraints<double> hn_constraints;
       hn_constraints.clear();
       DoFTools::make_hanging_node_constraints(*dof_handler, hn_constraints);
       hn_constraints.close();
@@ -450,7 +449,7 @@ main()
   solution_q.reinit(dof_handler->n_dofs());
   deformation.reinit(dof_handler_def->n_dofs());
 
-  ConstraintMatrix hn_constraints_def;
+  AffineConstraints<double> hn_constraints_def;
   hn_constraints_def.clear();
   DoFTools::make_hanging_node_constraints(*dof_handler_def, hn_constraints_def);
   hn_constraints_def.close();
index 78e1ecf40b79b20184be0cbe4a874b42710c1b94..784eccb4dac89de7e99ad7e29ab3b2d589b0f643 100644 (file)
@@ -31,7 +31,6 @@
 #include <deal.II/fe/mapping_q1.h>
 
 #include <deal.II/grid/grid_generator.h>
-#include <deal.II/grid/tria_boundary_lib.h>
 
 #include <deal.II/lac/vector.h>
 
index 493f97eee1209a046c3213101345e3ab14cd36dc..650462f4cb469cc81147a0600766ce852b1fa6e3 100644 (file)
@@ -99,7 +99,7 @@ plot_shape_function(hp::DoFHandler<dim> &dof_handler, unsigned int patches = 5)
   std::cout << "n_cells: " << dof_handler.get_triangulation().n_active_cells()
             << std::endl;
 
-  ConstraintMatrix constraints;
+  AffineConstraints<double> constraints;
   constraints.clear();
   dealii::DoFTools::make_hanging_node_constraints(dof_handler, constraints);
   constraints.close();
index 1159cea30a4297ff2b4dedb1e78ae2b3605ad4eb..fb7841d65a49c4f56b960c046b7de1c551face61 100644 (file)
@@ -927,7 +927,7 @@ plot_shape_function(hp::DoFHandler<dim> &dof_handler, unsigned int patches = 5)
   std::cout << "...start plotting shape function" << std::endl;
   std::cout << "Patches for output: " << patches << std::endl;
 
-  ConstraintMatrix constraints;
+  AffineConstraints<double> constraints;
   constraints.clear();
   dealii::DoFTools::make_hanging_node_constraints(dof_handler, constraints);
   constraints.close();
@@ -1098,7 +1098,7 @@ protected:
   Vector<double>                   localized_solution;
   PETScWrappers::MPI::Vector       system_rhs;
 
-  ConstraintMatrix constraints;
+  AffineConstraints<double> constraints;
 
   MPI_Comm           mpi_communicator;
   const unsigned int n_mpi_processes;
index 945f6b9a118c3834316962e8abc20573b5f4cce5..8e5f849c07ee739c040fb44a2381d7bb6d051835 100644 (file)
@@ -57,7 +57,7 @@ plot_shape_function(hp::DoFHandler<dim> &dof_handler, unsigned int patches = 5)
   deallog << "...start plotting shape function" << std::endl;
   deallog << "Patches for output: " << patches << std::endl;
 
-  ConstraintMatrix constraints;
+  AffineConstraints<double> constraints;
   constraints.clear();
   dealii::DoFTools::make_hanging_node_constraints(dof_handler, constraints);
   constraints.close();
@@ -274,7 +274,7 @@ main(int argc, char **argv)
 
   dof_handler.distribute_dofs(fe_collection);
 
-  ConstraintMatrix constraints;
+  AffineConstraints<double> constraints;
   DoFTools::make_hanging_node_constraints(dof_handler, constraints);
   constraints.close();
 
index 0ff5f528c56a9c5ab6f658cff5148eb7ad24f8a9..98b163878d94ed30108d76afb49e2b30bfa3858b 100644 (file)
@@ -483,11 +483,11 @@ RHSIntegrator<dim>::face(MeshWorker::DoFInfo<dim> &,
  * Main class
  */
 template <int dim>
-class MeshWorkerConstraintMatrixTest
+class MeshWorkerAffineConstraintsTest
 {
 public:
-  MeshWorkerConstraintMatrixTest(const FiniteElement<dim> &fe);
-  ~MeshWorkerConstraintMatrixTest();
+  MeshWorkerAffineConstraintsTest(const FiniteElement<dim> &fe);
+  ~MeshWorkerAffineConstraintsTest();
 
   void
   run();
@@ -523,7 +523,7 @@ private:
 
 
 template <int dim>
-MeshWorkerConstraintMatrixTest<dim>::MeshWorkerConstraintMatrixTest(
+MeshWorkerAffineConstraintsTest<dim>::MeshWorkerAffineConstraintsTest(
   const FiniteElement<dim> &fe)
   : mapping()
   , dof_handler(triangulation)
@@ -540,7 +540,7 @@ MeshWorkerConstraintMatrixTest<dim>::MeshWorkerConstraintMatrixTest(
 
 
 template <int dim>
-MeshWorkerConstraintMatrixTest<dim>::~MeshWorkerConstraintMatrixTest()
+MeshWorkerAffineConstraintsTest<dim>::~MeshWorkerAffineConstraintsTest()
 {
   dof_handler.clear();
 }
@@ -548,7 +548,7 @@ MeshWorkerConstraintMatrixTest<dim>::~MeshWorkerConstraintMatrixTest()
 
 template <int dim>
 void
-MeshWorkerConstraintMatrixTest<dim>::setup_system()
+MeshWorkerAffineConstraintsTest<dim>::setup_system()
 {
   dof_handler.distribute_dofs(fe);
 
@@ -588,7 +588,7 @@ MeshWorkerConstraintMatrixTest<dim>::setup_system()
  */
 template <int dim>
 void
-MeshWorkerConstraintMatrixTest<dim>::assemble_system_MeshWorker()
+MeshWorkerAffineConstraintsTest<dim>::assemble_system_MeshWorker()
 {
   MeshWorker::IntegrationInfoBox<dim> info_box;
 
@@ -624,7 +624,7 @@ MeshWorkerConstraintMatrixTest<dim>::assemble_system_MeshWorker()
  */
 template <int dim>
 void
-MeshWorkerConstraintMatrixTest<dim>::assemble_MeshWorker()
+MeshWorkerAffineConstraintsTest<dim>::assemble_MeshWorker()
 {
   MeshWorker::IntegrationInfoBox<dim> info_box;
 
@@ -668,7 +668,7 @@ MeshWorkerConstraintMatrixTest<dim>::assemble_MeshWorker()
 
 template <int dim>
 void
-MeshWorkerConstraintMatrixTest<dim>::createInhomConstraints()
+MeshWorkerAffineConstraintsTest<dim>::createInhomConstraints()
 {
   this->constraintsInhom.clear();
   // boundary constraints
@@ -702,7 +702,7 @@ MeshWorkerConstraintMatrixTest<dim>::createInhomConstraints()
 
 template <int dim>
 void
-MeshWorkerConstraintMatrixTest<dim>::run()
+MeshWorkerAffineConstraintsTest<dim>::run()
 {
   setup_system();
   createInhomConstraints();
@@ -743,13 +743,13 @@ main()
 
   FE_Q<2> fe(1);
   deallog.push(fe.get_name());
-  MeshWorkerConstraintMatrixTest<2> test(fe);
+  MeshWorkerAffineConstraintsTest<2> test(fe);
   test.run();
   deallog.pop();
 
   FE_DGQ<2> fe2(1);
   deallog.push(fe2.get_name());
-  MeshWorkerConstraintMatrixTest<2> test2(fe2);
+  MeshWorkerAffineConstraintsTest<2> test2(fe2);
   test2.run();
   deallog.pop();
 }
index ff7c80f78fcb24a7c811648980346a7d9ef58b2a..d893c3cbf417dafeb8828577e303772437d988f5 100644 (file)
@@ -86,7 +86,7 @@ test()
   DoFHandler<dim> dof(tria);
   dof.distribute_dofs(fe);
   dof.distribute_mg_dofs();
-  ConstraintMatrix constraints;
+  AffineConstraints<double> constraints;
   constraints.close();
 
   MGConstrainedDoFs mg_constrained_dofs;
index 758170f38893dde623ebec3871ff22d4a0912c65..8bd1d7b6fdcc4ddbc53a78838a2529a2147ef745 100644 (file)
@@ -81,7 +81,7 @@ test()
     (++dof_handler.begin_active())->set_active_fe_index(1);
   dof_handler.distribute_dofs(fe);
 
-  ConstraintMatrix constraints;
+  AffineConstraints<double> constraints;
   DoFTools::make_hanging_node_constraints(dof_handler, constraints);
   constraints.close();
 
index ec1e8a399b82b45b3c2d779df7bda3708f902fb9..3a454914d5310c211e9b637a550e14b1745478cf 100644 (file)
@@ -40,7 +40,6 @@
 #include <deal.II/grid/grid_in.h>
 #include <deal.II/grid/grid_tools.h>
 #include <deal.II/grid/tria.h>
-#include <deal.II/grid/tria_boundary_lib.h>
 
 #include <deal.II/lac/affine_constraints.h>
 #include <deal.II/lac/block_sparse_matrix.h>

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.