]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Modify AssertVectorVectorDimension slightly to satisfy nvcc_wrapper 7619/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 21 Jan 2019 10:12:15 +0000 (11:12 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 21 Jan 2019 10:12:15 +0000 (11:12 +0100)
include/deal.II/base/exceptions.h

index 0c7196a13f2ed759bf71fd4e8e8e7a8ff66bec27..ec4d1e7a250cc7368e282bba1fc549edf52b9671 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.