From: bangerth Date: Mon, 12 Sep 2011 05:30:59 +0000 (+0000) Subject: Add a dummy member function to the 1d case. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c1b905c10f5c2eb864f04558b4e8e449156b412;p=dealii-svn.git Add a dummy member function to the 1d case. git-svn-id: https://svn.dealii.org/trunk@24310 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/distributed/tria.h b/deal.II/include/deal.II/distributed/tria.h index 5a8b0d97ff..f0c3266e02 100644 --- a/deal.II/include/deal.II/distributed/tria.h +++ b/deal.II/include/deal.II/distributed/tria.h @@ -709,6 +709,17 @@ namespace parallel */ MPI_Comm get_communicator () const; + /** + * Return the sum over all + * processors of the number + * of active cells owned by + * each processor. This + * equals the overall number + * of active cells in the + * distributed triangulation. + */ + unsigned int n_global_active_cells () const; + /** * Returns a permutation vector for the order the coarse * cells are handed of to p4est. For example the first diff --git a/deal.II/source/distributed/tria.cc b/deal.II/source/distributed/tria.cc index a548df84de..79054657b6 100644 --- a/deal.II/source/distributed/tria.cc +++ b/deal.II/source/distributed/tria.cc @@ -2985,6 +2985,15 @@ namespace parallel } + template <> + unsigned int + Triangulation<1,2>::n_global_active_cells () const + { + Assert (false, ExcNotImplemented()); + return 0; + } + + template <> MPI_Comm Triangulation<1,2>::get_communicator () const