]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Instantiate AffineConstraints::distribute_local_to_global for TrilinosWrappers::Spars... 9925/head
authorPeter Munch <peterrmuench@gmail.com>
Sat, 18 Apr 2020 21:37:18 +0000 (23:37 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Wed, 22 Apr 2020 21:56:25 +0000 (23:56 +0200)
source/lac/affine_constraints.inst.in
tests/trilinos/direct_solver_3.cc

index c5635d230bde436fe0990452efb07136899e1454..a976cb5320b95fe40c2491ad53ba8e3e4768321e 100644 (file)
@@ -171,6 +171,24 @@ for (S : REAL_AND_COMPLEX_SCALARS; T : DEAL_II_VEC_TEMPLATES)
             std::integral_constant<bool, false>) const;
   }
 
+// TrilinosWrappers::SparseMatrix:
+
+for (T : DEAL_II_VEC_TEMPLATES)
+  {
+#ifdef DEAL_II_WITH_TRILINOS
+    template void AffineConstraints<double>::distribute_local_to_global<
+      TrilinosWrappers::SparseMatrix,
+      LinearAlgebra::distributed::T<double>>(
+      const FullMatrix<double> &,
+      const Vector<double> &,
+      const std::vector<size_type> &,
+      TrilinosWrappers::SparseMatrix &,
+      LinearAlgebra::distributed::T<double> &,
+      bool,
+      std::integral_constant<bool, false>) const;
+#endif
+  }
+
 // BlockSparseMatrix:
 
 for (S : REAL_AND_COMPLEX_SCALARS)
index 458391f51fe3e568ae0a0a305c60dfc9d400c138..71051f1c370b27ca0d0dededc0feedc431f96665 100644 (file)
@@ -232,13 +232,10 @@ Step4<dim>::assemble_system()
 
           cell->get_dof_indices(local_dof_indices);
           constraints.distribute_local_to_global(cell_matrix,
+                                                 cell_rhs,
                                                  local_dof_indices,
-                                                 system_matrix);
-
-          constraints.distribute_local_to_global(cell_rhs,
-                                                 local_dof_indices,
-                                                 system_rhs,
-                                                 cell_matrix);
+                                                 system_matrix,
+                                                 system_rhs);
           constraints.distribute_local_to_global(cell_rhs_two,
                                                  local_dof_indices,
                                                  system_rhs_two,

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.