From: Daniel Arndt Date: Thu, 16 Feb 2017 14:31:17 +0000 (+0100) Subject: Fix symmetric_tensor_39.cc for non C++11 compilers X-Git-Tag: v8.5.0-rc1~110^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3981%2Fhead;p=dealii.git Fix symmetric_tensor_39.cc for non C++11 compilers --- 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