const types::boundary_id b_id1,
const types::boundary_id b_id2,
const int direction,
- const dealii::Tensor<1,DH::space_dimension> &offset);
+ const dealii::Tensor<1,DH::space_dimension> &offset = dealii::Tensor<1,DH::space_dimension>());
/**
(const DH &dof_handler,
const types::boundary_id b_id,
const int direction,
- const dealii::Tensor<1,DH::space_dimension> &offset);
+ const dealii::Tensor<1,DH::space_dimension> &offset = dealii::Tensor<1,DH::space_dimension>());
/**
#endif
}
+for (deal_II_dimension : DIMENSIONS ; deal_II_space_dimension : SPACE_DIMENSIONS)
+{
+#if deal_II_dimension <= deal_II_space_dimension
+ #if deal_II_dimension >= 2
+
+ namespace GridTools \{
+
+ template
+ std::vector<PeriodicFacePair<parallel::distributed::Triangulation<deal_II_dimension, deal_II_space_dimension>::cell_iterator> >
+ collect_periodic_faces<parallel::distributed::Triangulation<deal_II_dimension, deal_II_space_dimension> >
+ (const parallel::distributed::Triangulation<deal_II_dimension, deal_II_space_dimension> &,
+ const types::boundary_id,
+ const types::boundary_id,
+ const int,
+ const Tensor<1,parallel::distributed::Triangulation<deal_II_dimension, deal_II_space_dimension>::space_dimension> &);
+
+ template
+ std::vector<PeriodicFacePair<parallel::distributed::Triangulation<deal_II_dimension, deal_II_space_dimension>::cell_iterator> >
+ collect_periodic_faces<parallel::distributed::Triangulation<deal_II_dimension, deal_II_space_dimension> >
+ (const parallel::distributed::Triangulation<deal_II_dimension, deal_II_space_dimension> &,
+ const types::boundary_id,
+ const int,
+ const Tensor<1,parallel::distributed::Triangulation<deal_II_dimension, deal_II_space_dimension>::space_dimension> &);
+
+ \}
+ #endif
+#endif
+}
+
GridGenerator::subdivided_hyper_rectangle
(triangulation,reps,p1,p2,true);
- std::vector
- <std_cxx1x::tuple
- <typename parallel::distributed::Triangulation<dim>::cell_iterator, unsigned int,
- typename parallel::distributed::Triangulation<dim>::cell_iterator, unsigned int> >
- periodicity_vector;
for(int i=1; i<dim; ++i)
- GridTools::identify_periodic_face_pairs
- (triangulation,
- /*b_id1*/ 2*i, /*b_id2*/2*i+1, /*direction*/ i,
- periodicity_vector);
-
- triangulation.add_periodicity(periodicity_vector);
-
+ {
+ std::vector<GridTools::PeriodicFacePair<typename parallel::distributed::Triangulation<dim>::cell_iterator> >
+ periodicity_vector = GridTools::collect_periodic_faces
+ ( triangulation, /*b_id1*/ 2*i, /*b_id2*/ 2*i+1, /*direction*/ i);
+ triangulation.add_periodicity(periodicity_vector);
+ }
triangulation.refine_global (1);
}
else