]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
use automatic output file name
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 23 Sep 2010 22:25:26 +0000 (22:25 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 23 Sep 2010 22:25:26 +0000 (22:25 +0000)
git-svn-id: https://svn.dealii.org/trunk@22139 0785d39b-7218-0410-832d-ea1e28bc413d

tests/base/functions_01.cc

index fa18b3ab99c983986d345b4b3de54fa8d90f16e7..7673b8ef6b509d446fc9a1f37aef4b191071c043 100644 (file)
@@ -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<dim>& 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);

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.