From: Wolfgang Bangerth Date: Wed, 6 Jan 2010 08:41:40 +0000 (+0000) Subject: Localize typedefs, rather than polluting the dealii namespace. X-Git-Tag: v8.0.0~6689 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1fee783013ea27d0303c2c051ec7246e32467e4;p=dealii.git Localize typedefs, rather than polluting the dealii namespace. git-svn-id: https://svn.dealii.org/trunk@20301 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/multigrid/mg_transfer.templates.h b/deal.II/deal.II/include/multigrid/mg_transfer.templates.h index 23666ab3d6..a756eff5fb 100644 --- a/deal.II/deal.II/include/multigrid/mg_transfer.templates.h +++ b/deal.II/deal.II/include/multigrid/mg_transfer.templates.h @@ -28,9 +28,6 @@ DEAL_II_NAMESPACE_OPEN /* --------------------- MGTransferPrebuilt -------------- */ -// Simplify some things below -typedef std::map::const_iterator IT; - template template @@ -45,6 +42,8 @@ MGTransferPrebuilt::copy_to_mg ( for (unsigned int level=mg_dof_handler.get_tria().n_levels();level != 0;) { --level; + + typedef std::map::const_iterator IT; for (IT i= copy_indices[level].begin(); i != copy_indices[level].end();++i) dst[level](i->second) = src(i->first); @@ -81,6 +80,7 @@ MGTransferPrebuilt::copy_from_mg( dst = 0; for (unsigned int level=0;level::const_iterator IT; for (IT i= copy_indices[level].begin(); i != copy_indices[level].end();++i) dst(i->first) = src[level](i->second); @@ -106,6 +106,7 @@ MGTransferPrebuilt::copy_from_mg_add ( // to the coarse level, but // have fine level basis // functions + typedef std::map::const_iterator IT; for (unsigned int level=0;level