From: bangerth Date: Mon, 22 Jul 2013 12:56:52 +0000 (+0000) Subject: Avoid filling a map with numeric_limit::max() elements -- too... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c44a8da509004b182b3c2c80579ca387e43c2d03;p=dealii-svn.git Avoid filling a map with numeric_limit::max() elements -- too many if we ever increase the number of bits in boundary_id. git-svn-id: https://svn.dealii.org/trunk@30093 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/numerics/vector_tools.templates.h b/deal.II/include/deal.II/numerics/vector_tools.templates.h index abb0372b0b..ace4f136ab 100644 --- a/deal.II/include/deal.II/numerics/vector_tools.templates.h +++ b/deal.II/include/deal.II/numerics/vector_tools.templates.h @@ -535,9 +535,12 @@ namespace VectorTools // parts. We want the // function to hold on // all parts of the boundary + const std::vector + used_boundary_indicators = dof.get_tria().get_boundary_indicators(); + typename FunctionMap::type boundary_functions; - for (types::boundary_id c=0; c