From: Peter Munch Date: Sat, 18 Apr 2020 21:37:18 +0000 (+0200) Subject: Instantiate AffineConstraints::distribute_local_to_global for TrilinosWrappers::Spars... X-Git-Tag: v9.2.0-rc1~191^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9925%2Fhead;p=dealii.git Instantiate AffineConstraints::distribute_local_to_global for TrilinosWrappers::SparseMatrix and LinearAlgebra::distributed::Vector --- diff --git a/source/lac/affine_constraints.inst.in b/source/lac/affine_constraints.inst.in index c5635d230b..a976cb5320 100644 --- a/source/lac/affine_constraints.inst.in +++ b/source/lac/affine_constraints.inst.in @@ -171,6 +171,24 @@ for (S : REAL_AND_COMPLEX_SCALARS; T : DEAL_II_VEC_TEMPLATES) std::integral_constant) const; } +// TrilinosWrappers::SparseMatrix: + +for (T : DEAL_II_VEC_TEMPLATES) + { +#ifdef DEAL_II_WITH_TRILINOS + template void AffineConstraints::distribute_local_to_global< + TrilinosWrappers::SparseMatrix, + LinearAlgebra::distributed::T>( + const FullMatrix &, + const Vector &, + const std::vector &, + TrilinosWrappers::SparseMatrix &, + LinearAlgebra::distributed::T &, + bool, + std::integral_constant) const; +#endif + } + // BlockSparseMatrix: for (S : REAL_AND_COMPLEX_SCALARS) diff --git a/tests/trilinos/direct_solver_3.cc b/tests/trilinos/direct_solver_3.cc index 458391f51f..71051f1c37 100644 --- a/tests/trilinos/direct_solver_3.cc +++ b/tests/trilinos/direct_solver_3.cc @@ -232,13 +232,10 @@ Step4::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,