std::vector<unsigned int> sub(2);
sub[0] = Utilities::MPI::n_mpi_processes(MPI_COMM_WORLD);
sub[1] = 1;
- GridGenerator::subdivided_hyper_rectangle(
- static_cast<Triangulation<dim> &>(tr), sub, Point<2>(0, 0), Point<2>(1, 1));
+ GridGenerator::subdivided_hyper_rectangle(tr,
+ sub,
+ Point<2>(0, 0),
+ Point<2>(1, 1));
FESystem<dim> fe(FE_Q<dim>(1), 2, FE_DGQ<dim>(0), 1);
DoFHandler<dim> dofh(tr);
std::vector<unsigned int> sub(2);
sub[0] = Utilities::MPI::n_mpi_processes(MPI_COMM_WORLD);
sub[1] = 1;
- GridGenerator::subdivided_hyper_rectangle(
- static_cast<Triangulation<dim> &>(tr), sub, Point<2>(0, 0), Point<2>(1, 1));
+ GridGenerator::subdivided_hyper_rectangle(tr,
+ sub,
+ Point<2>(0, 0),
+ Point<2>(1, 1));
FE_Q_DG0<dim> fe(1);
DoFHandler<dim> dofh(tr);
std::vector<unsigned int> sub(2);
sub[0] = 2 * Utilities::MPI::n_mpi_processes(MPI_COMM_WORLD);
sub[1] = 1;
- GridGenerator::subdivided_hyper_rectangle(
- static_cast<Triangulation<dim> &>(tr), sub, Point<2>(0, 0), Point<2>(1, 1));
+ GridGenerator::subdivided_hyper_rectangle(tr,
+ sub,
+ Point<2>(0, 0),
+ Point<2>(1, 1));
DoFHandler<dim> dofh(tr);
std::vector<unsigned int> sub(2);
sub[0] = Utilities::MPI::n_mpi_processes(MPI_COMM_WORLD);
sub[1] = 1;
- GridGenerator::subdivided_hyper_rectangle(
- static_cast<Triangulation<dim> &>(tr), sub, Point<2>(0, 0), Point<2>(1, 1));
+ GridGenerator::subdivided_hyper_rectangle(tr,
+ sub,
+ Point<2>(0, 0),
+ Point<2>(1, 1));
FESystem<dim> fe(FE_Q<dim>(1), 2, FE_DGQ<dim>(0), 1);
DoFHandler<dim> dofh(tr);
GridTools::PeriodicFacePair<typename Triangulation<dim>::cell_iterator>>
periodic_faces;
for (unsigned int d = 0; d < dim; ++d)
- GridTools::collect_periodic_faces(static_cast<Triangulation<dim> &>(tria),
- 2 * d,
- 2 * d + 1,
- d,
- periodic_faces);
+ GridTools::collect_periodic_faces(
+ tria, 2 * d, 2 * d + 1, d, periodic_faces);
tria.add_periodicity(periodic_faces);
std::vector<unsigned int> sub(2);
sub[0] = Utilities::MPI::n_mpi_processes(MPI_COMM_WORLD);
sub[1] = 1;
- GridGenerator::subdivided_hyper_rectangle(
- static_cast<Triangulation<dim> &>(tr), sub, Point<2>(0, 0), Point<2>(1, 1));
+ GridGenerator::subdivided_hyper_rectangle(tr,
+ sub,
+ Point<2>(0, 0),
+ Point<2>(1, 1));
const FE_Q<dim> fe_q(1);
FESystem<dim> fe(fe_q, 2);