From: Guido Kanschat Date: Thu, 3 Mar 2005 16:52:43 +0000 (+0000) Subject: missing file X-Git-Tag: v8.0.0~14548 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0740d39fdc89ab0569e9aa2f7599515d81dc6d76;p=dealii.git missing file git-svn-id: https://svn.dealii.org/trunk@9973 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/base/path_search.cc b/tests/base/path_search.cc new file mode 100644 index 0000000000..a798e6cd75 --- /dev/null +++ b/tests/base/path_search.cc @@ -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 +#include + +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; +}