From e33ec2b85ef7d79a27b559aeb8f4f8193998ec9e Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 16 Feb 2017 15:31:17 +0100 Subject: [PATCH] Fix symmetric_tensor_39.cc for non C++11 compilers --- tests/base/symmetric_tensor_39.cc | 10 ++++------ tests/base/symmetric_tensor_39.output | 3 ++- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/tests/base/symmetric_tensor_39.cc b/tests/base/symmetric_tensor_39.cc index 8de62a6045..039d8320c5 100644 --- a/tests/base/symmetric_tensor_39.cc +++ b/tests/base/symmetric_tensor_39.cc @@ -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::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; } diff --git a/tests/base/symmetric_tensor_39.output b/tests/base/symmetric_tensor_39.output index d86bac9de5..0fd8fc12f0 100644 --- a/tests/base/symmetric_tensor_39.output +++ b/tests/base/symmetric_tensor_39.output @@ -1 +1,2 @@ -OK + +DEAL::OK -- 2.39.5