]> https://gitweb.dealii.org/ - dealii.git/commitdiff
missing file
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 3 Mar 2005 16:52:43 +0000 (16:52 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 3 Mar 2005 16:52:43 +0000 (16:52 +0000)
git-svn-id: https://svn.dealii.org/trunk@9973 0785d39b-7218-0410-832d-ea1e28bc413d

tests/base/path_search.cc [new file with mode: 0644]

diff --git a/tests/base/path_search.cc b/tests/base/path_search.cc
new file mode 100644 (file)
index 0000000..a798e6c
--- /dev/null
@@ -0,0 +1,50 @@
+//-----------------------------------------------------------------------------
+//    $Id$
+//    Version: $Name$ 
+//
+//    Copyright (C) 2005 by the deal.II authors
+//
+//    This file is subject to QPL and may not be  distributed
+//    without copyright and license information. Please refer
+//    to the file deal.II/doc/license.html for the  text  and
+//    further information on this license.
+//
+//-----------------------------------------------------------------------------
+
+#include "../tests.h"
+#include <base/path_search.h>
+#include <base/logstream.h>
+
+int main()
+{
+  std::ofstream logfile("path_search.output");
+  deallog.attach(logfile);
+  deallog.depth_console(0);
+
+  PathSearch::add_class("CC");
+
+                                  // Open with full debugging
+  PathSearch cc("CC", 2);
+  cc.add_path(DEAL_II_PATH "/lac/source/");
+  cc.add_path(DEAL_II_PATH "/lac/include/lac/", PathSearch::front);
+  cc.add_suffix(".c");
+  cc.add_suffix(".cc");
+
+  cc.open("block_vector.cc");
+  cc.open("block_vector");
+  cc.add_suffix(".h", PathSearch::after_none);
+  cc.open("block_vector");
+
+  cc.show(deallog);
+  
+  PathSearch mesh("MESH", 2);
+  mesh.show(deallog);
+  std::istream& in = mesh.open("backstep");
+  std::string line;
+  for (unsigned int i=0;i<4;++i)
+    {
+      in >> line;
+      deallog << ' ' << line;
+    }
+  deallog << std::endl;
+}

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.