]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Tests: Fix nearly all the failing PETSc complex tests
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 28 May 2018 16:22:42 +0000 (18:22 +0200)
committerMatthias Maier <tamiko@43-1.org>
Wed, 6 Jun 2018 15:19:38 +0000 (10:19 -0500)
tests/mpi/petsc_distribute_01.cc
tests/mpi/petsc_distribute_01_block.cc
tests/mpi/petsc_distribute_01_inhomogenous.cc
tests/petsc_complex/assemble_01.cc
tests/petsc_complex/parallel_sparse_matrix_01.cc

index f98c71cc3f83c8c3ad0b066158851fe53c8d6cdf..85e8615e5b6b9c54f027239c6f248616830910d6 100644 (file)
@@ -69,7 +69,7 @@ test()
     std::max<int>(100 * myid - 50, 0),
     std::min(static_cast<types::global_dof_index>(100 * myid + 150),
              vec.size()));
-  ConstraintMatrix cm(locally_relevant_range);
+  AffineConstraints<PetscScalar> cm(locally_relevant_range);
 
   // add constraints that constrain an element in the middle of the
   // local range of each processor against an element outside, both in
index c8fb5b7bc481b43e8a74d33237bc1a562db84fbf..54ff06d7e4c5c9a2c7d14fd87ebe3706300c6a3d 100644 (file)
@@ -85,7 +85,7 @@ test()
     vec.block(0).size() +
       std::min(static_cast<types::global_dof_index>(100 * myid + 150),
                vec.block(0).size()));
-  ConstraintMatrix cm(locally_relevant_range);
+  AffineConstraints<PetscScalar> cm(locally_relevant_range);
 
   // add constraints that constrain an element in the middle of the
   // local range of each processor against an element outside, both in
index 7e99deeb0489d4da783fdea8e68048b940acd0eb..7e346f79a29533029500a5fe4946b0581ab66adc 100644 (file)
@@ -61,7 +61,7 @@ test()
     std::max<int>(100 * myid - 50, 0),
     std::min(static_cast<types::global_dof_index>(100 * myid + 150),
              vec.size()));
-  ConstraintMatrix cm(locally_relevant_range);
+  AffineConstraints<PetscScalar> cm(locally_relevant_range);
 
   // add constraints that constrain an element in the middle of the
   // local range of each processor against an element outside, both in
index 151ba4c5b4c5b67205a424bbf19457f8bb89511c..2e449b256d1c2af61509beedbc0d5db329251dca 100644 (file)
@@ -45,7 +45,7 @@ main(int argc, char **argv)
   FullMatrix<PetscScalar> cell_matrix(n, n);
   Vector<PetscScalar>     cell_rhs(n);
 
-  ConstraintMatrix constraints;
+  AffineConstraints<PetscScalar> constraints;
   constraints.close();
 
   std::vector<types::global_dof_index> gdi(n);
index e006612b5af7828b4521bdcec230304a25a6b498..2525a136c21971f0b373b67f83c465b0ac555e72 100644 (file)
@@ -85,7 +85,7 @@ test(const unsigned int poly_degree = 1)
 
   vector.reinit(locally_owned_dofs, mpi_communicator);
 
-  ConstraintMatrix constraints;
+  AffineConstraints<PetscScalar> constraints;
   constraints.reinit(locally_relevant_dofs);
   DoFTools::make_hanging_node_constraints(dof_handler, constraints);
   constraints.close();

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.