From: Daniel Arndt Date: Mon, 21 Jan 2019 10:12:15 +0000 (+0100) Subject: Modify AssertVectorVectorDimension slightly to satisfy nvcc_wrapper X-Git-Tag: v9.1.0-rc1~420^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=faa441f96202f73c7a190b33c781e6ed7f5795f7;p=dealii.git Modify AssertVectorVectorDimension slightly to satisfy nvcc_wrapper --- diff --git a/include/deal.II/base/exceptions.h b/include/deal.II/base/exceptions.h index 0c7196a13f..ec4d1e7a25 100644 --- a/include/deal.II/base/exceptions.h +++ b/include/deal.II/base/exceptions.h @@ -1592,11 +1592,11 @@ namespace deal_II_exceptions * @ingroup Exceptions * @author Guido Kanschat 2010 */ -#define AssertVectorVectorDimension(vec, dim1, dim2) \ - AssertDimension((vec).size(), (dim1)); \ - for (unsigned int i = 0; i < dim1; ++i) \ +#define AssertVectorVectorDimension(VEC, DIM1, DIM2) \ + AssertDimension(VEC.size(), DIM1); \ + for (const auto &subvector : VEC) \ { \ - AssertDimension((vec)[i].size(), (dim2)); \ + AssertDimension(subvector.size(), DIM2); \ } namespace internal