// ---------------------------------------------------------------------
//
// Copyright (C) 1998 - 2022 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_struct_dimension : DIMENSIONS; deal_II_dimension : DIMENSIONS;
     deal_II_space_dimension : DIMENSIONS;
     lda : BOOL)
  {
#if deal_II_struct_dimension <= deal_II_dimension && \
  deal_II_dimension <= deal_II_space_dimension
    template class DoFAccessor<deal_II_struct_dimension,
                               deal_II_dimension,
                               deal_II_space_dimension,
                               lda>;
    template class TriaRawIterator<DoFAccessor<deal_II_struct_dimension,
                                               deal_II_dimension,
                                               deal_II_space_dimension,
                                               lda>>;
    template class TriaIterator<DoFAccessor<deal_II_struct_dimension,
                                            deal_II_dimension,
                                            deal_II_space_dimension,
                                            lda>>;
    template class TriaActiveIterator<DoFAccessor<deal_II_struct_dimension,
                                                  deal_II_dimension,
                                                  deal_II_space_dimension,
                                                  lda>>;
#endif
  }


for (deal_II_dimension : DIMENSIONS; deal_II_space_dimension : DIMENSIONS;
     lda : BOOL)
  {
#if deal_II_dimension <= deal_II_space_dimension
    template class DoFCellAccessor<deal_II_dimension,
                                   deal_II_space_dimension,
                                   lda>;
    template class TriaRawIterator<
      DoFCellAccessor<deal_II_dimension, deal_II_space_dimension, lda>>;
    template class TriaIterator<
      DoFCellAccessor<deal_II_dimension, deal_II_space_dimension, lda>>;
    template class TriaActiveIterator<
      DoFCellAccessor<deal_II_dimension, deal_II_space_dimension, lda>>;

    template void internal::DoFAccessorImplementation::
      get_cell_dof_indices<deal_II_dimension, deal_II_space_dimension, lda>(
        const dealii::
          DoFCellAccessor<deal_II_dimension, deal_II_space_dimension, lda> &,
        boost::container::small_vector<types::global_dof_index, 27> &,
        const unsigned int);
#endif
  }


for (deal_II_struct_dimension : DIMENSIONS; deal_II_dimension : DIMENSIONS;
     deal_II_space_dimension : DIMENSIONS)
  {
    template class DoFInvalidAccessor<deal_II_struct_dimension,
                                      deal_II_dimension,
                                      deal_II_space_dimension>;
  }
