// ------------------------------------------------------------------------ // // SPDX-License-Identifier: LGPL-2.1-or-later // Copyright (C) 2018 - 2025 by the deal.II authors // // This file is part of the deal.II library. // // Part of the source code is dual licensed under Apache-2.0 WITH // LLVM-exception OR LGPL-2.1-or-later. Detailed license information // governing the source code and code contributions can be found in // LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II. // // ------------------------------------------------------------------------ for (S : REAL_AND_COMPLEX_SCALARS) { template class AffineConstraints; } // ------------------------------------------------------------------------ // // Instantiate AffineConstraints::condense variants // // ------------------------------------------------------------------------ for (S : REAL_AND_COMPLEX_SCALARS) { template void AffineConstraints::condense>(SparseMatrix &, Vector &) const; template void AffineConstraints::condense>( BlockSparseMatrix &, BlockVector &) const; } for (S : REAL_AND_COMPLEX_SCALARS; T : DEAL_II_VEC_TEMPLATES) { template void AffineConstraints::condense>(const T &, T &) const; template void AffineConstraints::condense>( const LinearAlgebra::distributed::T &, LinearAlgebra::distributed::T &) const; template void AffineConstraints::condense>(T & vec) const; template void AffineConstraints::condense>( LinearAlgebra::distributed::T & vec) const; } // ------------------------------------------------------------------------ // // Instantiate AffineConstraints::distribute_local_to_global variants // // ------------------------------------------------------------------------ // Pure vector variants: for (S : REAL_AND_COMPLEX_SCALARS; T : DEAL_II_VEC_TEMPLATES) { template void AffineConstraints::distribute_local_to_global>( const Vector &, const std::vector &, T &, const FullMatrix &) const; template void AffineConstraints::distribute_local_to_global< LinearAlgebra::distributed::T>( const Vector &, const std::vector &, LinearAlgebra::distributed::T &, const FullMatrix &) const; template void AffineConstraints::distribute_local_to_global>( const Vector &, const std::vector &, const std::vector &, T &, const FullMatrix &, bool) const; template void AffineConstraints::distribute_local_to_global< LinearAlgebra::distributed::T>( const Vector &, const std::vector &, const std::vector &, LinearAlgebra::distributed::T &, const FullMatrix &, bool) const; } // Almost all matrix/vector variants: for (S : REAL_AND_COMPLEX_SCALARS; M : AFFINE_CONSTRAINTS_MATRIX_TEMPL) { template void AffineConstraints::distribute_local_to_global, Vector>( const FullMatrix &, const Vector &, const std::vector::size_type> &, M &, Vector &, bool, std::bool_constant) const; template void AffineConstraints::distribute_local_to_global>( const FullMatrix &, const std::vector::size_type> &, const std::vector::size_type> &, M &) const; template void AffineConstraints::distribute_local_to_global>( const FullMatrix &, const std::vector::size_type> &, const AffineConstraints &, const std::vector::size_type> &, M &) const; } // DiagonalMatrix: for (S : REAL_AND_COMPLEX_SCALARS; T : DEAL_II_VEC_TEMPLATES) { template void AffineConstraints::distribute_local_to_global< DiagonalMatrix>>(const FullMatrix &, const std::vector &, DiagonalMatrix> &) const; template void AffineConstraints::distribute_local_to_global< DiagonalMatrix>>( const FullMatrix &, const std::vector &, DiagonalMatrix> &) const; template void AffineConstraints::distribute_local_to_global< DiagonalMatrix>>(const FullMatrix &, const std::vector &, const std::vector &, DiagonalMatrix> &) const; template void AffineConstraints::distribute_local_to_global< DiagonalMatrix>>( const FullMatrix &, const std::vector &, const std::vector &, DiagonalMatrix> &) const; template void AffineConstraints::distribute_local_to_global< DiagonalMatrix>, T>(const FullMatrix &, const Vector &, const std::vector &, DiagonalMatrix> &, T &, bool, std::bool_constant) const; template void AffineConstraints::distribute_local_to_global< DiagonalMatrix>, LinearAlgebra::distributed::T>( const FullMatrix &, const Vector &, const std::vector &, DiagonalMatrix> &, LinearAlgebra::distributed::T &, bool, std::bool_constant) const; template void AffineConstraints::distribute_local_to_global< DiagonalMatrix>, T>(const FullMatrix &, const Vector &, const std::vector &, DiagonalMatrix> &, T &, bool, std::bool_constant) const; } // BlockSparseMatrix: for (S : REAL_AND_COMPLEX_SCALARS) { template void AffineConstraints::distribute_local_to_global< BlockSparseMatrix, Vector>(const FullMatrix &, const Vector &, const std::vector::size_type> &, BlockSparseMatrix &, Vector &, bool, std::bool_constant) const; template void AffineConstraints::distribute_local_to_global< BlockSparseMatrix, BlockVector>(const FullMatrix &, const Vector &, const std::vector::size_type> &, BlockSparseMatrix &, BlockVector &, bool, std::bool_constant) const; template void AffineConstraints::distribute_local_to_global>( const FullMatrix &, const std::vector::size_type> &, const std::vector::size_type> &, BlockSparseMatrix &) const; template void AffineConstraints::distribute_local_to_global>( const FullMatrix &, const std::vector::size_type> &, const AffineConstraints &, const std::vector::size_type> &, BlockSparseMatrix &) const; } // MatrixBlock for (S : REAL_AND_COMPLEX_SCALARS) { template void AffineConstraints::distribute_local_to_global< MatrixBlock>>( const FullMatrix &, const std::vector::size_type> &, const std::vector::size_type> &, MatrixBlock> &) const; template void AffineConstraints::distribute_local_to_global< MatrixBlock>>( const FullMatrix &, const std::vector::size_type> &, const AffineConstraints &, const std::vector::size_type> &, MatrixBlock> &) const; } // ------------------------------------------------------------------------ // // Tpetra: // // ------------------------------------------------------------------------ for (S : TRILINOS_SCALARS) { template void AffineConstraints::distribute_local_to_global< LinearAlgebra::TpetraWrappers::SparseMatrix, LinearAlgebra::TpetraWrappers::Vector>( const FullMatrix &, const Vector &, const std::vector::size_type> &, LinearAlgebra::TpetraWrappers::SparseMatrix &, LinearAlgebra::TpetraWrappers::Vector &, bool, std::integral_constant) const; // BlockSparseMatrix template void AffineConstraints::distribute_local_to_global< LinearAlgebra::TpetraWrappers::BlockSparseMatrix, LinearAlgebra::TpetraWrappers::Vector>( const FullMatrix &, const Vector &, const std::vector::size_type> &, LinearAlgebra::TpetraWrappers::BlockSparseMatrix &, LinearAlgebra::TpetraWrappers::Vector &, bool, std::bool_constant) const; template void AffineConstraints::distribute_local_to_global< LinearAlgebra::TpetraWrappers::BlockSparseMatrix, LinearAlgebra::TpetraWrappers::BlockVector>( const FullMatrix &, const Vector &, const std::vector::size_type> &, LinearAlgebra::TpetraWrappers::BlockSparseMatrix &, LinearAlgebra::TpetraWrappers::BlockVector &, bool, std::bool_constant) const; template void AffineConstraints::distribute_local_to_global< LinearAlgebra::TpetraWrappers::BlockSparseMatrix>( const FullMatrix &, const std::vector::size_type> &, const std::vector::size_type> &, LinearAlgebra::TpetraWrappers::BlockSparseMatrix &) const; template void AffineConstraints::distribute_local_to_global< LinearAlgebra::TpetraWrappers::BlockSparseMatrix>( const FullMatrix &, const std::vector::size_type> &, const AffineConstraints &, const std::vector::size_type> &, LinearAlgebra::TpetraWrappers::BlockSparseMatrix &) const; template void AffineConstraints::distribute_local_to_global< LinearAlgebra::TpetraWrappers::SparseMatrix, LinearAlgebra::TpetraWrappers::Vector>( const FullMatrix &, const Vector &, const std::vector::size_type> &, LinearAlgebra::TpetraWrappers::SparseMatrix &, LinearAlgebra::TpetraWrappers::Vector &, bool, std::integral_constant) const; // BlockSparseMatrix template void AffineConstraints::distribute_local_to_global< LinearAlgebra::TpetraWrappers::BlockSparseMatrix, LinearAlgebra::TpetraWrappers::Vector>( const FullMatrix &, const Vector &, const std::vector::size_type> &, LinearAlgebra::TpetraWrappers::BlockSparseMatrix &, LinearAlgebra::TpetraWrappers::Vector &, bool, std::bool_constant) const; template void AffineConstraints::distribute_local_to_global< LinearAlgebra::TpetraWrappers::BlockSparseMatrix, LinearAlgebra::TpetraWrappers::BlockVector>( const FullMatrix &, const Vector &, const std::vector::size_type> &, LinearAlgebra::TpetraWrappers::BlockSparseMatrix &, LinearAlgebra::TpetraWrappers::BlockVector &, bool, std::bool_constant) const; template void AffineConstraints::distribute_local_to_global< LinearAlgebra::TpetraWrappers::BlockSparseMatrix>( const FullMatrix &, const std::vector::size_type> &, const std::vector::size_type> &, LinearAlgebra::TpetraWrappers::BlockSparseMatrix &) const; template void AffineConstraints::distribute_local_to_global< LinearAlgebra::TpetraWrappers::BlockSparseMatrix>( const FullMatrix &, const std::vector::size_type> &, const AffineConstraints &, const std::vector::size_type> &, LinearAlgebra::TpetraWrappers::BlockSparseMatrix &) const; } // ------------------------------------------------------------------------ // // Rest: // // ------------------------------------------------------------------------ for (S : REAL_AND_COMPLEX_SCALARS; T : DEAL_II_VEC_TEMPLATES) { template void AffineConstraints::distribute>(T &) const; template void AffineConstraints::distribute>( LinearAlgebra::distributed::T &) const; } for (S : COMPLEX_SCALARS; T : DEAL_II_VEC_TEMPLATES) { template void AffineConstraints::distribute>(T &) const; template void AffineConstraints::distribute< LinearAlgebra::distributed::T>(LinearAlgebra::distributed::T &) const; } for (V : EXTERNAL_PARALLEL_VECTORS) { template void AffineConstraints::distribute(V &) const; } // // FIXME: These mixed variants are needed for multigrid and matrix free. // for (T : DEAL_II_VEC_TEMPLATES) { template void dealii::AffineConstraints::condense>( T &) const; template void dealii::AffineConstraints::distribute>( T &) const; template void dealii::AffineConstraints::distribute< LinearAlgebra::distributed::T>( LinearAlgebra::distributed::T &) const; } for (T : VECTOR_TYPES) { namespace internal { namespace AffineConstraintsImplementation { template void set_zero_all(const std::vector &, T &vec); \} \} }