// ---------------------------------------------------------------------
// $Id: constraint_matrix.inst.in 31527 2013-11-03 09:58:45Z maier $
//
// Copyright (C) 2013 by the deal.II authors
//
// This file is part of the deal.II library.
//
// The deal.II library is free software; you can use it, redistribute
// it, and/or modify it under the terms of the GNU Lesser General
// Public License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
// The full text of the license can be found in the file LICENSE at
// the top level of the deal.II distribution.
//
// ---------------------------------------------------------------------

for (S: REAL_SCALARS; T : DEAL_II_VEC_TEMPLATES)
  {
    template void ConstraintMatrix::condense<T<S> >(const T<S> &, T<S> &) const;
    template void ConstraintMatrix::condense<T<S> >(T<S> &vec) const;
    template void ConstraintMatrix::distribute_local_to_global<T<S> > (
      const Vector<double>&, const std::vector<types::global_dof_index> &, T<S> &, const FullMatrix<double>&) const;
    template void ConstraintMatrix::distribute<T<S> >(const T<S> &, T<S> &) const;
    template void ConstraintMatrix::set_zero<T<S> >(T<S> &) const;
  }


for (S: REAL_SCALARS; T : DEAL_II_VEC_TEMPLATES)
  {
    template void ConstraintMatrix::condense<parallel::distributed::T<S> >(const parallel::distributed::T<S> &, parallel::distributed::T<S> &) const;
    template void ConstraintMatrix::condense<parallel::distributed::T<S> >(parallel::distributed::T<S> &vec) const;
    template void ConstraintMatrix::distribute_local_to_global<parallel::distributed::T<S> > (
      const Vector<double>&, const std::vector<types::global_dof_index> &, parallel::distributed::T<S> &, const FullMatrix<double>&) const;
    template void ConstraintMatrix::distribute<parallel::distributed::T<S> >(const parallel::distributed::T<S> &, parallel::distributed::T<S> &) const;
    template void ConstraintMatrix::set_zero<parallel::distributed::T<S> >(parallel::distributed::T<S> &) const;
  }


for (V: EXTERNAL_SEQUENTIAL_VECTORS)
  {
    template void ConstraintMatrix::condense<V >(const V&, V&) const;
    template void ConstraintMatrix::condense<V >(V&vec) const;
    template void ConstraintMatrix::distribute_local_to_global<V > (
      const Vector<double>&, const std::vector<types::global_dof_index> &, V&, const FullMatrix<double>&) const;
    template void ConstraintMatrix::distribute<V >(const V&, V&) const;
    template void ConstraintMatrix::set_zero<V >(V&) const;
  }


for (V: EXTERNAL_PARALLEL_VECTORS)
  {
    template void ConstraintMatrix::set_zero<V >(V&) const;
  }


for (S : REAL_SCALARS)
  {
    template void ConstraintMatrix::condense<S>(const SparseMatrix<S>&, SparseMatrix<S> &) const;
    template void ConstraintMatrix::condense<S>(SparseMatrix<S>&) const;
    template void ConstraintMatrix::condense<S>(BlockSparseMatrix<S>&) const;
  }


for (S1 : REAL_SCALARS; S2 : REAL_SCALARS)
  {
    template void ConstraintMatrix::condense<S1,Vector<S2> >(SparseMatrix<S1>&, Vector<S2>&) const;
    template void ConstraintMatrix::condense<S1,BlockVector<S2> >(BlockSparseMatrix<S1>&, BlockVector<S2>&) const;
    template void ConstraintMatrix::condense<S1,Vector<S2> >(
        const SparseMatrix<S1>&, const Vector<S2>&, SparseMatrix<S1> &, Vector<S2>&) const;
    template void ConstraintMatrix::condense<S1,BlockVector<S2> >(
        const SparseMatrix<S1>&, const BlockVector<S2>&, SparseMatrix<S1> &, BlockVector<S2>&) const;
  }


for (Vec : SERIAL_VECTORS)
  {
    template void ConstraintMatrix::distribute<Vec>(Vec &) const;
  }
