]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix compiling fe_tools_extrapolate tests without PETSc 16027/head
authorDaniel Arndt <arndtd@ornl.gov>
Thu, 21 Sep 2023 16:23:54 +0000 (12:23 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Thu, 21 Sep 2023 16:32:26 +0000 (12:32 -0400)
tests/mpi/fe_tools_extrapolate_common.h

index 31ca05ac622247866584e104870f81002b5742b1..1f6ddf3afe10a4d719cf752b0144b1d6fccbb83a 100644 (file)
@@ -201,12 +201,12 @@ check_this(const FiniteElement<dim> &fe1, const FiniteElement<dim> &fe2)
   const IndexSet  locally_relevant_dofs2 =
     DoFTools::extract_locally_relevant_dofs(*dof2);
 
-  AffineConstraints<PetscScalar> cm1(locally_owned_dofs1,
-                                     locally_relevant_dofs1);
+  AffineConstraints<typename VectorType::value_type> cm1(
+    locally_owned_dofs1, locally_relevant_dofs1);
   DoFTools::make_hanging_node_constraints(*dof1, cm1);
   cm1.close();
-  AffineConstraints<PetscScalar> cm2(locally_owned_dofs2,
-                                     locally_relevant_dofs2);
+  AffineConstraints<typename VectorType::value_type> cm2(
+    locally_owned_dofs2, locally_relevant_dofs2);
   DoFTools::make_hanging_node_constraints(*dof2, cm2);
   cm2.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.