#include <algorithm>
#include <numeric>
-
-#include <base/timer.h>
-
-# include <iostream>
+#include <iostream>
DEAL_II_NAMESPACE_OPEN
// TODO: This is a verbatim copy of the 2,2
// case. However, we can't just specialize the
- // dim template argument, but let spacedim open
+ // dim template argument, but let spacedim open
template <>
void
Triangulation<2,3>::copy_new_triangulation_to_p4est (internal::int2type<2>)
return;
}
- Timer t(MPI_COMM_WORLD, true);
- t.start();
-
-
-
// now do the work we're
// supposed to do when we are
// in charge
&RefineAndCoarsenList<dim,spacedim>::coarsen_callback,
/*init_callback=*/NULL);
- t.stop();
-#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
- if (my_subdomain==0)
- {
- deallog << "_p4est::ref&coarsen ";
- t.print_data(deallog);
- }
-#endif
-
- t.reset();
- t.start();
-
-
// make sure all cells in the lists have
// been consumed
Assert (refine_and_coarsen_list.pointers_are_at_end(),
/*init_callback=*/NULL);
- t.stop();
-#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
- if (my_subdomain==0)
- {
- deallog << "_p4est::balance ";
- t.print_data(deallog);
- }
-#endif
- t.reset();
- t.start();
-
-
// before repartitioning the mesh let
// others attach mesh related info
// (such as SolutionTransfer data) to
// the p4est
attach_mesh_data();
-
- t.stop();
-#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
- if (my_subdomain==0)
- {
- deallog << "_attach_mesh_data ";
- t.print_data(deallog);
- }
-#endif
- t.reset();
- t.start();
-
// partition the new mesh between
// all processors
internal::p4est::functions<dim>::
/* prepare coarsening */ 1,
/* weight_callback */ NULL);
- t.stop();
-#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
- if (my_subdomain==0)
- {
- deallog << "_p4est::partition ";
- t.print_data(deallog);
- }
-#endif
- t.reset();
- t.start();
-
// finally copy back from local
// part of tree to deal.II
// triangulation. before doing
refinement_in_progress = false;
update_number_cache ();
-
- t.stop();
-#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
- if (my_subdomain==0)
- {
- deallog << "_copy_to_deal ";
- t.print_data(deallog);
- }
-#endif
- t.reset();
}