From a7f55e5159cfc38e0ef08f36eb628488a9accbfa Mon Sep 17 00:00:00 2001 From: kanschat Date: Thu, 23 Sep 2010 22:25:26 +0000 Subject: [PATCH] use automatic output file name git-svn-id: https://svn.dealii.org/trunk@22139 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/base/functions_01.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/base/functions_01.cc b/tests/base/functions_01.cc index fa18b3ab99..7673b8ef6b 100644 --- a/tests/base/functions_01.cc +++ b/tests/base/functions_01.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2007, 2008 by the deal.II authors +// Copyright (C) 2007, 2008, 2010 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -213,7 +213,8 @@ check_function(const Functions::FlowFunction& f, int main() { - std::ofstream logfile("functions_01/output"); + std::string logname = JobIdentifier::base_name(__FILE__) + std::string("/output"); + std::ofstream logfile(logname.c_str()); deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); -- 2.39.5