]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Revert "No longer output the size of tensors into output file of a test." 16823/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Sat, 30 Mar 2024 15:04:10 +0000 (09:04 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sat, 30 Mar 2024 15:04:10 +0000 (09:04 -0600)
This reverts commit a492d57657769bdc38a65c2532f1711a55abab21.

tests/tensors/constexpr_tensor.cc
tests/tensors/constexpr_tensor.output

index a6a32327b0c3a3f3a398a5d2e31690f630bed578..2ad4267ed97bdad60590ea80b46d851e0d088162 100644 (file)
@@ -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.}};
index 17b01dcd1027660e7efa60172c924f8f87f34464..5b07862e373ac4b6df30f9973496dbcdc1f8485d 100644 (file)
@@ -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

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.