]> https://gitweb.dealii.org/ - dealii.git/commitdiff
No longer output the size of tensors into output file of a test. 16816/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 29 Mar 2024 22:30:32 +0000 (16:30 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 29 Mar 2024 22:32:06 +0000 (16:32 -0600)
tests/tensors/constexpr_tensor.cc
tests/tensors/constexpr_tensor.output

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

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.