From d86e95e57175d6d3183db6cdbe5cce3d2d90bff0 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sat, 30 Mar 2024 09:04:10 -0600 Subject: [PATCH] Revert "No longer output the size of tensors into output file of a test." This reverts commit a492d57657769bdc38a65c2532f1711a55abab21. --- tests/tensors/constexpr_tensor.cc | 6 +----- tests/tensors/constexpr_tensor.output | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/tensors/constexpr_tensor.cc b/tests/tensors/constexpr_tensor.cc index a6a32327b0..2ad4267ed9 100644 --- a/tests/tensors/constexpr_tensor.cc +++ b/tests/tensors/constexpr_tensor.cc @@ -147,12 +147,8 @@ 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(); - (void)used_memory; + deallog << "Used memory: " << used_memory << std::endl; { 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 17b01dcd10..5b07862e37 100644 --- a/tests/tensors/constexpr_tensor.output +++ b/tests/tensors/constexpr_tensor.output @@ -165,4 +165,5 @@ 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 -- 2.39.5