From: Wolfgang Bangerth Date: Fri, 29 Mar 2024 22:30:32 +0000 (-0600) Subject: No longer output the size of tensors into output file of a test. X-Git-Tag: v9.6.0-rc1~426^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16816%2Fhead;p=dealii.git No longer output the size of tensors into output file of a test. --- diff --git a/tests/tensors/constexpr_tensor.cc b/tests/tensors/constexpr_tensor.cc index 2ad4267ed9..a6a32327b0 100644 --- a/tests/tensors/constexpr_tensor.cc +++ b/tests/tensors/constexpr_tensor.cc @@ -147,8 +147,12 @@ main() Tensor<2, 3>::component_to_unrolled_index(TableIndices<2>{}); Assert(index == 0, ExcInternalError()); + // Also make sure one can call memory_consumption() in a constexpr + // context. The actual amount of memory used depends on the platform + // and vectorization level, so compute it but don't output it to a + // file. DEAL_II_CONSTEXPR const auto used_memory = Tensor<2, 3>::memory_consumption(); - deallog << "Used memory: " << used_memory << std::endl; + (void)used_memory; { constexpr double a_init[3][3] = {{1., 0., 0.}, {2., 1., 0.}, {3., 2., 1.}}; diff --git a/tests/tensors/constexpr_tensor.output b/tests/tensors/constexpr_tensor.output index 5b07862e37..17b01dcd10 100644 --- a/tests/tensors/constexpr_tensor.output +++ b/tests/tensors/constexpr_tensor.output @@ -165,5 +165,4 @@ DEAL:double::0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.0 DEAL::Using Tensor within constexpr functions DEAL::15.2000 DEAL::116.000 -DEAL::Used memory: 72 DEAL::OK