// ---------------------------------------------------------------------
//
// Copyright (C) 1998 - 2021 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.md at
// the top level directory of deal.II.
//
// ---------------------------------------------------------------------



for (deal_II_dimension : DIMENSIONS)
  {
    template void MGTransferBlock<float>::build<deal_II_dimension>(
      const DoFHandler<deal_II_dimension> &, const std::vector<bool> &);

    template void MGTransferBlock<double>::build<deal_II_dimension>(
      const DoFHandler<deal_II_dimension> &, const std::vector<bool> &);

    template void MGTransferBlockSelect<float>::build<deal_II_dimension>(
      const DoFHandler<deal_II_dimension> &, const unsigned int);

    template void MGTransferBlockSelect<double>::build<deal_II_dimension>(
      const DoFHandler<deal_II_dimension> &, const unsigned int);

    template void MGTransferBlock<float>::copy_to_mg(
      const DoFHandler<deal_II_dimension> &,
      MGLevelObject<BlockVector<float>> &,
      const BlockVector<double> &) const;
    template void MGTransferBlock<float>::copy_from_mg(
      const DoFHandler<deal_II_dimension> &,
      BlockVector<double> &,
      const MGLevelObject<BlockVector<float>> &) const;
    template void MGTransferBlock<float>::copy_from_mg_add(
      const DoFHandler<deal_II_dimension> &,
      BlockVector<double> &,
      const MGLevelObject<BlockVector<float>> &) const;

    template void MGTransferBlock<double>::copy_to_mg(
      const DoFHandler<deal_II_dimension> &,
      MGLevelObject<BlockVector<double>> &,
      const BlockVector<double> &) const;
    template void MGTransferBlock<double>::copy_from_mg(
      const DoFHandler<deal_II_dimension> &,
      BlockVector<double> &,
      const MGLevelObject<BlockVector<double>> &) const;
    template void MGTransferBlock<double>::copy_from_mg_add(
      const DoFHandler<deal_II_dimension> &,
      BlockVector<double> &,
      const MGLevelObject<BlockVector<double>> &) const;

    template void MGTransferBlockSelect<float>::copy_to_mg(
      const DoFHandler<deal_II_dimension> &,
      MGLevelObject<Vector<float>> &,
      const Vector<double> &) const;
    template void MGTransferBlockSelect<float>::copy_to_mg(
      const DoFHandler<deal_II_dimension> &,
      MGLevelObject<Vector<float>> &,
      const BlockVector<double> &) const;
    template void MGTransferBlockSelect<float>::copy_from_mg(
      const DoFHandler<deal_II_dimension> &,
      Vector<double> &,
      const MGLevelObject<Vector<float>> &) const;
    template void MGTransferBlockSelect<float>::copy_from_mg(
      const DoFHandler<deal_II_dimension> &,
      BlockVector<double> &,
      const MGLevelObject<Vector<float>> &) const;
    template void MGTransferBlockSelect<float>::copy_from_mg_add(
      const DoFHandler<deal_II_dimension> &,
      Vector<double> &,
      const MGLevelObject<Vector<float>> &) const;
    template void MGTransferBlockSelect<float>::copy_from_mg_add(
      const DoFHandler<deal_II_dimension> &,
      BlockVector<double> &,
      const MGLevelObject<Vector<float>> &) const;

    template void MGTransferBlockSelect<double>::copy_to_mg(
      const DoFHandler<deal_II_dimension> &,
      MGLevelObject<Vector<double>> &,
      const Vector<double> &) const;
    template void MGTransferBlockSelect<double>::copy_to_mg(
      const DoFHandler<deal_II_dimension> &,
      MGLevelObject<Vector<double>> &,
      const BlockVector<double> &) const;
    template void MGTransferBlockSelect<double>::copy_from_mg(
      const DoFHandler<deal_II_dimension> &,
      Vector<double> &,
      const MGLevelObject<Vector<double>> &) const;
    template void MGTransferBlockSelect<double>::copy_from_mg(
      const DoFHandler<deal_II_dimension> &,
      BlockVector<double> &,
      const MGLevelObject<Vector<double>> &) const;
    template void MGTransferBlockSelect<double>::copy_from_mg_add(
      const DoFHandler<deal_II_dimension> &,
      Vector<double> &,
      const MGLevelObject<Vector<double>> &) const;
    template void MGTransferBlockSelect<double>::copy_from_mg_add(
      const DoFHandler<deal_II_dimension> &,
      BlockVector<double> &,
      const MGLevelObject<Vector<double>> &) const;
  }
