// ---------------------------------------------------------------------
//
// Copyright (C) 1998 - 2018 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 (deal_II_dimension : DIMENSIONS)
{
    namespace internal
    \{
    template const types::global_dof_index * dummy<deal_II_dimension,deal_II_dimension> ();
    template std::string policy_to_string(const dealii::internal::DoFHandlerImplementation::Policy::
                                          PolicyBase<deal_II_dimension,deal_II_dimension> &);

#if deal_II_dimension < 3
    template const types::global_dof_index * dummy<deal_II_dimension,deal_II_dimension+1> ();
    template std::string policy_to_string(const dealii::internal::DoFHandlerImplementation::Policy::
                                          PolicyBase<deal_II_dimension,deal_II_dimension+1> &);
#endif
    \}


    template class DoFHandler<deal_II_dimension>;

#if deal_II_dimension < 3
    template class DoFHandler<deal_II_dimension,deal_II_dimension+1>;
#endif

#if deal_II_dimension == 3
    template class DoFHandler<1,deal_II_dimension>;

    template
    types::global_dof_index
    DoFHandler<1,3>::
    get_dof_index<1> (const unsigned int       obj_level,
                      const unsigned int       obj_index,
                      const unsigned int       fe_index,
                      const unsigned int       local_index) const;
#endif

    template
    types::global_dof_index
    DoFHandler<deal_II_dimension,deal_II_dimension>::
    get_dof_index<1> (const unsigned int       obj_level,
                      const unsigned int       obj_index,
                      const unsigned int       fe_index,
                      const unsigned int       local_index) const;

#if deal_II_dimension < 3
    template
    types::global_dof_index
    DoFHandler<deal_II_dimension,deal_II_dimension+1>::
    get_dof_index<1> (const unsigned int       obj_level,
                      const unsigned int       obj_index,
                      const unsigned int       fe_index,
                      const unsigned int       local_index) const;
#endif

#if deal_II_dimension >= 2
    template
    types::global_dof_index
    DoFHandler<deal_II_dimension,deal_II_dimension>::
    get_dof_index<2> (const unsigned int       obj_level,
                      const unsigned int       obj_index,
                      const unsigned int       fe_index,
                      const unsigned int       local_index) const;

#if deal_II_dimension < 3
    template
    types::global_dof_index
    DoFHandler<deal_II_dimension,deal_II_dimension+1>::
    get_dof_index<2> (const unsigned int       obj_level,
                      const unsigned int       obj_index,
                      const unsigned int       fe_index,
                      const unsigned int       local_index) const;
#endif

#if deal_II_dimension >= 3
    template
    types::global_dof_index
    DoFHandler<deal_II_dimension,deal_II_dimension>::
    get_dof_index<3> (const unsigned int       obj_level,
                      const unsigned int       obj_index,
                      const unsigned int       fe_index,
                      const unsigned int       local_index) const;
#endif
#endif

    template
    void
    DoFHandler<deal_II_dimension,deal_II_dimension>::
    set_dof_index<1> (const unsigned int       obj_level,
                      const unsigned int            obj_index,
                      const unsigned int            fe_index,
                      const unsigned int            local_index,
                      const types::global_dof_index global_index) const;

#if deal_II_dimension < 3
    template
    void
    DoFHandler<deal_II_dimension,deal_II_dimension+1>::
    set_dof_index<1> (const unsigned int       obj_level,
                      const unsigned int            obj_index,
                      const unsigned int            fe_index,
                      const unsigned int            local_index,
                      const types::global_dof_index global_index) const;
#endif

#if deal_II_dimension < 2
    template
    void
    DoFHandler<deal_II_dimension,deal_II_dimension+2>::
    set_dof_index<1> (const unsigned int       obj_level,
                      const unsigned int            obj_index,
                      const unsigned int            fe_index,
                      const unsigned int            local_index,
                      const types::global_dof_index global_index) const;
#endif

#if deal_II_dimension >= 2
    template
    void
    DoFHandler<deal_II_dimension,deal_II_dimension>::
    set_dof_index<2> (const unsigned int       obj_level,
                      const unsigned int            obj_index,
                      const unsigned int            fe_index,
                      const unsigned int            local_index,
                      const types::global_dof_index global_index) const;

#if deal_II_dimension < 3
    template
    void
    DoFHandler<deal_II_dimension,deal_II_dimension+1>::
    set_dof_index<2> (const unsigned int       obj_level,
                      const unsigned int            obj_index,
                      const unsigned int            fe_index,
                      const unsigned int            local_index,
                      const types::global_dof_index global_index) const;
#endif

#if deal_II_dimension >= 3
    template
    void
    DoFHandler<deal_II_dimension,deal_II_dimension>::
    set_dof_index<3> (const unsigned int       obj_level,
                      const unsigned int            obj_index,
                      const unsigned int            fe_index,
                      const unsigned int            local_index,
                      const types::global_dof_index global_index) const;
#endif
#endif
}

