roy_1.exe : roy_1.g.$(OBJEXT) $(libraries)
denis_1.exe : denis_1.g.$(OBJEXT) $(libraries)
unit_support_points.exe : unit_support_points.g.$(OBJEXT) $(libraries)
+parameter_handler_1.exe : parameter_handler_1.g.$(OBJEXT) $(libraries)
tests = anna_1 anna_2 anna_3 anna_4 anna_5 \
roy_1 \
denis_1 \
- unit_support_points
+ unit_support_points parameter_handler_1
############################################################
--- /dev/null
+//---------------------------- parameter_handler_1.cc ---------------------------
+// $Id$
+// Version: $Name$
+//
+// Copyright (C) 2002 by the deal.II authors and Anna Schneebeli
+//
+// 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.
+//
+//---------------------------- parameter_handler_1.cc ---------------------------
+
+
+// check the Patterns::List pattern
+
+#include <base/logstream.h>
+#include <base/parameter_handler.h>
+#include <fstream>
+
+void check (const char *p)
+{
+ ParameterHandler prm;
+ prm.declare_entry ("test_1", "-1,0",
+ Patterns::List(Patterns::Integer(-1,1),2,3));
+
+ std::ifstream in(p);
+ prm.read_input (in);
+
+ deallog << "test_1=" << prm.get ("test_1") << std::endl;
+};
+
+
+int main ()
+{
+ std::ofstream logfile("parameter_handler_1.output");
+ deallog.attach(logfile);
+ deallog.depth_console(0);
+
+ check ("parameter_handler_1.prm1");
+
+ return 0;
+};