From: Martin Kronbichler Date: Tue, 8 Oct 2019 07:16:10 +0000 (+0200) Subject: Test size() function X-Git-Tag: v9.2.0-rc1~991^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ff6090f4691b95ea09443cafdc09018f80997d1;p=dealii.git Test size() function --- diff --git a/tests/base/vectorization_01.cc b/tests/base/vectorization_01.cc index 3f6e146c55..82c86cdbc4 100644 --- a/tests/base/vectorization_01.cc +++ b/tests/base/vectorization_01.cc @@ -36,6 +36,10 @@ test() for (unsigned int i = 0; i < n_vectors; ++i) c[i] = Number(i); + AssertDimension(n_vectors, a.size()); + AssertDimension(a.size(), sizeof(a) / sizeof(Number)); + AssertDimension(VectorizedArray::size(), sizeof(a) / sizeof(Number)); + deallog << "Addition: "; VectorizedArray d = a + b; for (unsigned int i = 0; i < n_vectors; ++i)