From: guido Date: Sat, 10 Sep 2005 20:32:57 +0000 (+0000) Subject: comment special function X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b49d5f08e6eea1aa6ce3f5efd458760fd3260fe1;p=dealii-svn.git comment special function git-svn-id: https://svn.dealii.org/trunk@11396 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/multigrid/multigrid.all_dimensions.cc b/deal.II/deal.II/source/multigrid/multigrid.all_dimensions.cc index 19ec4b16a7..c7d73a3680 100644 --- a/deal.II/deal.II/source/multigrid/multigrid.all_dimensions.cc +++ b/deal.II/deal.II/source/multigrid/multigrid.all_dimensions.cc @@ -23,8 +23,14 @@ - - +// Warning: the following function is for debugging purposes only. It +// will be compiled only, if the additional and undocumented compiler +// flag MG_DEBUG is set. Furthermore, as soon as this function is +// compiled, libraries for different dimensions may NOT be linked +// anymore at the same time. + +// If this function is to be used, its declaration must be added to +// the class Multigrid again. #ifdef MG_DEBUG template <> void @@ -36,7 +42,6 @@ Multigrid >::print_vector (const unsigned int level, return; const unsigned int dim=deal_II_dimension; -//TODO[GK]: How is this supposed to work? the .all_dimension.cc files are supposed to be exactly the same for all space dimensions -- if they aren't you get strange and inconsistent results if you link a program with the 1d, 2d, and 3d libraries at the same time, because you have multiple instances of the exact same function (same name, same template arguments), but they do different things. the linker can't know this, so it may call one or the other, and possible results certainly include crashes const DoFHandler *dof = mg_dof_handler; Vector out_vector(dof->n_dofs());