From: bangerth Date: Fri, 2 Nov 2012 19:41:47 +0000 (+0000) Subject: Avoid a couple of warnings about past-the-end accesses. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=731c9b77e80fa502ec872a58f40b1275b7f24578;p=dealii-svn.git Avoid a couple of warnings about past-the-end accesses. git-svn-id: https://svn.dealii.org/trunk@27319 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/matrix_free/matrix_free.templates.h b/deal.II/include/deal.II/matrix_free/matrix_free.templates.h index 1fc7d26320..c26e375a72 100644 --- a/deal.II/include/deal.II/matrix_free/matrix_free.templates.h +++ b/deal.II/include/deal.II/matrix_free/matrix_free.templates.h @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2011 by the deal.II authors +// Copyright (C) 2011, 2012 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -1104,7 +1104,7 @@ namespace internal number(scaling)); return static_cast (boost::hash_range(&mod_tensor[0][0], - &mod_tensor[0][0]+dim*vectorization_length)); + &mod_tensor[dim-1][vectorization_length-1]+1)); } else { @@ -1116,8 +1116,7 @@ namespace internal number(scaling)); return static_cast(boost::hash_range (&mod_tensor[0][0][0], - &mod_tensor[0][0][0]+ - dim*dim*vectorization_length)); + &mod_tensor[dim-1][dim-1][vectorization_length-1]+1)); } }