]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix symmetric_tensor_39.cc for non C++11 compilers 3981/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 16 Feb 2017 14:31:17 +0000 (15:31 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 16 Feb 2017 14:37:01 +0000 (15:37 +0100)
tests/base/symmetric_tensor_39.cc
tests/base/symmetric_tensor_39.output

index 8de62a6045227cac86255c0e17ca77a788a909fe..039d8320c522f3098c792393912eaf94f4ae6b99 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2012 - 2015 by the deal.II authors
+// Copyright (C) 2017 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -20,8 +20,7 @@
 
 int main()
 {
-  std::string logname = "output";
-  std::ofstream logfile(logname);
+  initlog();
 
   const unsigned int dim = 3;
 
@@ -54,8 +53,7 @@ int main()
     for (unsigned int j = 0; j < dim; ++j)
       for (unsigned int v = 0; v < VectorizedArray<double>::n_array_elements; ++v)
         if (B[i][j][v] != 0.0)
-          logfile << "Not OK" << std::endl;
+          deallog<< "Not OK" << std::endl;
 
-  logfile << "OK" << std::endl;
-  logfile.close();
+  deallog << "OK" << std::endl;
 }
index d86bac9de59abcc26bc7956c1e842237c7581859..0fd8fc12f0b442283edd8868867114c242b04d11 100644 (file)
@@ -1 +1,2 @@
-OK
+
+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.