//----------------------------  parameter_handler_1.cc  ---------------------------
//    $Id$
//    Version: $Name$
//
//    Copyright (C) 2002, 2003 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.
//
//----------------------------  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;
}

//----------------------------  parameter_handler_1.cc  ---------------------------
//    $Id$
//    Version: $Name$
//
//    Copyright (C) 2002, 2003 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;
}

--- 
+++ 
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2002, 2003 by the deal.II authors and Anna Schneebeli
+//    Copyright (C) 2002, 2003 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
Remove incorrect credit of authorship.


git-svn-id: 31d9d2f6432a47c86a3640814024c107794ea77c@7586 0785d39b-7218-0410-832d-ea1e28bc413d
