From: kanschat Date: Thu, 23 Sep 2010 22:25:26 +0000 (+0000) Subject: use automatic output file name X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7f55e5159cfc38e0ef08f36eb628488a9accbfa;p=dealii-svn.git use automatic output file name git-svn-id: https://svn.dealii.org/trunk@22139 0785d39b-7218-0410-832d-ea1e28bc413d --- 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);