grid_tools.exe : grid_tools.go $(lib-1d) $(lib-2d) $(lib-3d) $(libraries)
subdomain_ids.exe : subdomain_ids.go $(lib-1d) $(lib-2d) $(lib-3d) $(libraries)
filtered_iterator.exe : filtered_iterator.go $(lib-2d) $(libraries)
+grid_in.exe : grid_in.go $(lib-2d) $(libraries)
tests = grid_test grid_transform dof_test data_out derivatives gradients \
matrices error_estimator intergrid_constraints intergrid_map \
wave-test-3 dof_renumbering support_point_map filtered_matrix \
boundaries sparsity_pattern grid_tools subdomain_ids \
- filtered_iterator grid_out
+ filtered_iterator grid_out grid_in
############################################################
--- /dev/null
+//---------------------------- constraints.cc ---------------------------
+// $Id$
+// Version: $Name$
+//
+// Copyright (C) 2002 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.
+//
+//---------------------------- constraints.cc ---------------------------
+
+
+#include <dofs/dof_handler.h>
+#include <grid/tria.h>
+#include <grid/tria_boundary.h>
+#include <grid/tria_boundary_lib.h>
+#include <grid/grid_out.h>
+#include <grid/grid_in.h>
+#include <grid/grid_generator.h>
+#include <base/logstream.h>
+
+#include <fstream>
+
+
+std::ofstream logfile("grid_in.output");
+
+
+template <int dim>
+void test ()
+{
+ Triangulation<dim> tria;
+ GridIn<dim> gi;
+ gi.attach_triangulation (tria);
+ std::ifstream in ("grid_in.in");
+ gi.read_ucd (in);
+
+ static const HyperBallBoundary<dim> x;
+ tria.set_boundary (0, x);
+// tria.refine_global(1);
+
+ GridOut grid_out;
+ grid_out.write_ucd (tria, logfile);
+};
+
+
+int main ()
+{
+ logfile.precision (2);
+ deallog.attach(logfile);
+ deallog.depth_console(0);
+
+ test<2> ();
+};
+