// ---------------------------------------------------------------------
// $Id: data_out_dof_data.inst.in 31349 2013-10-20 19:07:06Z maier $
//
// Copyright (C) 2010 - 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 (VEC : SERIAL_VECTORS; DH : DOFHANDLER_TEMPLATES; deal_II_dimension : DIMENSIONS)
{
// codim=0

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension,deal_II_dimension>::
  add_data_vector<VEC> (const VEC            &,
                       const std::string   &,
                       const DataVectorType,
                     const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension,deal_II_dimension>::
  add_data_vector<VEC> (const VEC                       &,
                     const std::vector<std::string> &,
                     const DataVectorType,
                     const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension,deal_II_dimension>::
  add_data_vector<VEC> (const VEC                 &,
                      const DataPostprocessor<DH<deal_II_dimension,deal_II_dimension>::space_dimension> &);

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension,deal_II_dimension>::
  add_data_vector<VEC> (const DH<deal_II_dimension,deal_II_dimension> &,
                        const VEC            &,
                        const std::string   &,
                        const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension,deal_II_dimension>::
  add_data_vector<VEC> (const DH<deal_II_dimension,deal_II_dimension> &,
                        const VEC                       &,
                        const std::vector<std::string> &,
                        const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension,deal_II_dimension>::
  add_data_vector<VEC> (const DH<deal_II_dimension,deal_II_dimension> &,
                        const VEC                 &,
                        const DataPostprocessor<DH<deal_II_dimension,deal_II_dimension>::space_dimension> &);



// stuff needed for face data

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension-1,deal_II_dimension>::
  add_data_vector<VEC> (const VEC            &,
                       const std::string   &,
                       const DataVectorType,
                     const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension-1,deal_II_dimension>::
  add_data_vector<VEC> (const VEC                       &,
                     const std::vector<std::string> &,
                     const DataVectorType,
                     const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension-1,deal_II_dimension>::
  add_data_vector<VEC> (const VEC                 &,
                      const DataPostprocessor<DH<deal_II_dimension,deal_II_dimension>::space_dimension> &);

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension-1,deal_II_dimension>::
  add_data_vector<VEC> (const DH<deal_II_dimension,deal_II_dimension> &,
                        const VEC            &,
                        const std::string   &,
                        const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension-1,deal_II_dimension>::
  add_data_vector<VEC> (const DH<deal_II_dimension,deal_II_dimension> &,
                        const VEC                       &,
                        const std::vector<std::string> &,
                        const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension-1,deal_II_dimension>::
  add_data_vector<VEC> (const DH<deal_II_dimension,deal_II_dimension> &,
                        const VEC                 &,
                        const DataPostprocessor<DH<deal_II_dimension,deal_II_dimension>::space_dimension> &);



// things for DataOutRotation

#if deal_II_dimension < 3
  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension+1,deal_II_dimension+1>::
  add_data_vector<VEC> (const VEC            &,
                       const std::string   &,
                       const DataVectorType,
                     const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension+1,deal_II_dimension+1>::
  add_data_vector<VEC> (const VEC                       &,
                     const std::vector<std::string> &,
                     const DataVectorType,
                     const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension+1,deal_II_dimension+1>::
  add_data_vector<VEC> (const VEC                 &,
                      const DataPostprocessor<DH<deal_II_dimension,deal_II_dimension>::space_dimension> &);

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension+1,deal_II_dimension+1>::
  add_data_vector<VEC> (const DH<deal_II_dimension,deal_II_dimension> &,
                        const VEC            &,
                        const std::string   &,
                        const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension+1,deal_II_dimension+1>::
  add_data_vector<VEC> (const DH<deal_II_dimension,deal_II_dimension> &,
                        const VEC                       &,
                        const std::vector<std::string> &,
                        const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension+1,deal_II_dimension+1>::
  add_data_vector<VEC> (const DH<deal_II_dimension,deal_II_dimension> &,
                        const VEC                 &,
                        const DataPostprocessor<DH<deal_II_dimension,deal_II_dimension>::space_dimension> &);
#endif


// codim 1

#if deal_II_dimension < 3
  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension+1>,deal_II_dimension,deal_II_dimension+1>::
  add_data_vector<VEC> (const VEC            &,
                       const std::string   &,
                       const DataVectorType,
                     const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension+1>,deal_II_dimension,deal_II_dimension+1>::
  add_data_vector<VEC> (const VEC                       &,
                     const std::vector<std::string> &,
                     const DataVectorType,
                     const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension+1>,deal_II_dimension,deal_II_dimension+1>::
  add_data_vector<VEC> (const VEC                 &,
                      const DataPostprocessor<DH<deal_II_dimension,deal_II_dimension+1>::space_dimension> &);

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension+1>,deal_II_dimension,deal_II_dimension+1>::
  add_data_vector<VEC> (const DH<deal_II_dimension,deal_II_dimension+1> &,
                        const VEC            &,
                        const std::string   &,
                        const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension+1>,deal_II_dimension,deal_II_dimension+1>::
  add_data_vector<VEC> (const DH<deal_II_dimension,deal_II_dimension+1> &,
                        const VEC                       &,
                        const std::vector<std::string> &,
                        const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension+1>,deal_II_dimension,deal_II_dimension+1>::
  add_data_vector<VEC> (const DH<deal_II_dimension,deal_II_dimension+1> &,
                        const VEC                 &,
                        const DataPostprocessor<DH<deal_II_dimension,deal_II_dimension+1>::space_dimension> &);
#endif



// codim 2

  #if deal_II_dimension == 3
  template void
  DataOut_DoFData<DH<1,3>,1,3>::
  add_data_vector<VEC> (const VEC            &,
                       const std::string   &,
                       const DataVectorType,
                     const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

  template void
  DataOut_DoFData<DH<1,3>,1,3>::
  add_data_vector<VEC> (const VEC                       &,
                     const std::vector<std::string> &,
                     const DataVectorType,
                     const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

  template void
  DataOut_DoFData<DH<1,3>,1,3>::
  add_data_vector<VEC> (const VEC                 &,
                      const DataPostprocessor<DH<1,3>::space_dimension> &);

  template void
  DataOut_DoFData<DH<1,3>,1,3>::
  add_data_vector<VEC> (const DH<1,3> &,
                        const VEC            &,
                        const std::string   &,
                        const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

  template void
  DataOut_DoFData<DH<1,3>,1,3>::
  add_data_vector<VEC> (const DH<1,3> &,
                        const VEC                       &,
                        const std::vector<std::string> &,
                        const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

  template void
  DataOut_DoFData<DH<1,3>,1,3>::
  add_data_vector<VEC> (const DH<1,3> &,
                        const VEC                 &,
                        const DataPostprocessor<DH<1,3>::space_dimension> &);
  #endif

}



for (DH : DOFHANDLER_TEMPLATES; deal_II_dimension : DIMENSIONS)
{
// codim=0

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension,deal_II_dimension>::
  add_data_vector<IndexSet> (const IndexSet            &,
                       const std::string   &,
                       const DataVectorType,
                     const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension,deal_II_dimension>::
  add_data_vector<IndexSet> (const IndexSet                       &,
                     const std::vector<std::string> &,
                     const DataVectorType,
                     const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension,deal_II_dimension>::
  add_data_vector<IndexSet> (const DH<deal_II_dimension,deal_II_dimension> &,
                             const IndexSet            &,
                             const std::string   &,
                             const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension,deal_II_dimension>::
  add_data_vector<IndexSet> (const DH<deal_II_dimension,deal_II_dimension> &,
                             const IndexSet                       &,
                             const std::vector<std::string> &,
                             const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension,deal_II_dimension>::
  add_data_vector<IndexSet> (const IndexSet                 &,
                      const DataPostprocessor<DH<deal_II_dimension,deal_II_dimension>::space_dimension> &);



// stuff needed for face data

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension-1,deal_II_dimension>::
  add_data_vector<IndexSet> (const IndexSet            &,
                       const std::string   &,
                       const DataVectorType,
                     const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension-1,deal_II_dimension>::
  add_data_vector<IndexSet> (const IndexSet                       &,
                     const std::vector<std::string> &,
                     const DataVectorType,
                     const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension-1,deal_II_dimension>::
  add_data_vector<IndexSet> (const IndexSet                 &,
                      const DataPostprocessor<DH<deal_II_dimension,deal_II_dimension>::space_dimension> &);


  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension-1,deal_II_dimension>::
  add_data_vector<IndexSet> (const DH<deal_II_dimension,deal_II_dimension> &,
                             const IndexSet            &,
                             const std::string   &,
                             const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension-1,deal_II_dimension>::
  add_data_vector<IndexSet> (const DH<deal_II_dimension,deal_II_dimension> &,
                             const IndexSet                       &,
                             const std::vector<std::string> &,
                             const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

// things for DataOutRotation

#if deal_II_dimension < 3
  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension+1,deal_II_dimension+1>::
  add_data_vector<IndexSet> (const IndexSet            &,
                       const std::string   &,
                       const DataVectorType,
                     const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension+1,deal_II_dimension+1>::
  add_data_vector<IndexSet> (const IndexSet                       &,
                     const std::vector<std::string> &,
                     const DataVectorType,
                     const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension+1,deal_II_dimension+1>::
  add_data_vector<IndexSet> (const IndexSet                 &,
                      const DataPostprocessor<DH<deal_II_dimension,deal_II_dimension>::space_dimension> &);


  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension+1,deal_II_dimension+1>::
  add_data_vector<IndexSet> (const DH<deal_II_dimension,deal_II_dimension> &,
                             const IndexSet            &,
                             const std::string   &,
                             const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension>,deal_II_dimension+1,deal_II_dimension+1>::
  add_data_vector<IndexSet> (const DH<deal_II_dimension,deal_II_dimension> &,
                             const IndexSet                       &,
                             const std::vector<std::string> &,
                             const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);
#endif

// codim 1

#if deal_II_dimension < 3
  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension+1>,deal_II_dimension,deal_II_dimension+1>::
  add_data_vector<IndexSet> (const IndexSet            &,
                       const std::string   &,
                       const DataVectorType,
                     const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension+1>,deal_II_dimension,deal_II_dimension+1>::
  add_data_vector<IndexSet> (const IndexSet                       &,
                     const std::vector<std::string> &,
                     const DataVectorType,
                     const std::vector<DataComponentInterpretation::DataComponentInterpretation> &);

  template void
  DataOut_DoFData<DH<deal_II_dimension,deal_II_dimension+1>,deal_II_dimension,deal_II_dimension+1>::
  add_data_vector<IndexSet> (const IndexSet                 &,
                      const DataPostprocessor<DH<deal_II_dimension,deal_II_dimension+1>::space_dimension> &);
#endif

}



for (DH : DOFHANDLER_TEMPLATES; deal_II_dimension : DIMENSIONS)
{
  template class DataOut_DoFData<DH<deal_II_dimension>,deal_II_dimension>;

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

#if deal_II_dimension >= 2
  template class DataOut_DoFData<DH<deal_II_dimension>,deal_II_dimension-1,deal_II_dimension>;
#endif

#if deal_II_dimension == 3
     template class DataOut_DoFData<DH<1>,1,3>;
     template class DataOut_DoFData<DH<1,3>,1,3>;
#endif

}


for (deal_II_dimension : DIMENSIONS; deal_II_space_dimension : DIMENSIONS)
{
  namespace internal \{
    namespace DataOut \{
#if deal_II_dimension <= deal_II_space_dimension
      template struct ParallelDataBase<deal_II_dimension,deal_II_space_dimension>;
#endif
    \}
  \}
}


for (DH : DOFHANDLER_TEMPLATES; deal_II_dimension : DIMENSIONS; deal_II_space_dimension : DIMENSIONS)
{
  namespace internal \{
    namespace DataOut \{
#if deal_II_dimension <= deal_II_space_dimension
      template
      void
      ParallelDataBase<deal_II_dimension,deal_II_space_dimension>::
      reinit_all_fe_values<dealii::DH<deal_II_dimension,deal_II_space_dimension> >
      (std::vector<std_cxx1x::shared_ptr<DataEntryBase<dealii::DH<deal_II_dimension,deal_II_space_dimension> > > > &dof_data,
       const dealii::Triangulation<deal_II_dimension,deal_II_space_dimension>::cell_iterator &cell,
       const unsigned int face);
#endif
    \}
  \}
}
