just a note, if I'm using the current svn version (Id: tria.cc 24678 2011-10-26 16:25:12Z heister) and not 7.1.0, it's working without a patch or workaround.
Best Uwe On Fri, 2012-02-17 at 12:39 +0100, Uwe Köcher wrote: > Hi there, > > I actually figured out a problem with the function > n_global_active_cells from parallel::distributed::Triangulation. > > If I call this function after a simple global refinement, > the numbercache will not be updated (maybe not). > > I figured out, that there is a function update_number_cache(), > but it is private, so I can't do it directly. > > So the output of this function will be the number of locally owned > cells only. > > A workaround is maybe to use the MPI::sum overall locally_owned cells. > > Maybe someone should fix this. > (I think calling update_number_cache in the function > n_global_active_cell should be the fix). > > Note: after using the function execute_coarsening_and_refinement() > the number cache will be updated, and I think the n_global_active_cells > shall give the expected result. > > Best > Uwe > > -- Dipl.-Ing. Uwe Köcher Helmut Schmidt Universität Universität der Bundeswehr Fakultät für Maschinenbau, Professur für Numerische Verfahren in den Rechnergestützten Ingenieurwissenschaften. Holstenhofweg 85 22043 Hamburg Tel: +49 40 6541 - 3241 Raum: H1 - R.1225 Email: [email protected] Web: http://www.hsu-hh.de/mb-mathe _______________________________________________ dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii
