]> https://gitweb.dealii.org/ - dealii.git/commitdiff
tests: Avoid a test link error.
authorDavid Wells <drwells@email.unc.edu>
Wed, 14 Jun 2023 21:37:45 +0000 (17:37 -0400)
committerDavid Wells <drwells@email.unc.edu>
Thu, 15 Jun 2023 14:36:00 +0000 (10:36 -0400)
For some reason this doesn't work in debug mode. When we require C++17
we can use proper inline constexpr variables so its not worth bothering
with a proper fix.

tests/tensors/copy_from_01.cc

index d5e68e0864fddde24139a6e1053937b9f159ff3c..8c8d08d666c6cacb05891a5fa73195260144e423 100644 (file)
@@ -40,7 +40,7 @@ main()
 
   myMatrix.copy_to(myTensor);
 
-  deallog << myTensor.dimension << std::endl;
+  deallog << matrix_dimension << std::endl;
   deallog.get_file_stream() << myTensor << std::endl;
 
   myTensor *= 2;

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.