]> https://gitweb.dealii.org/ - dealii.git/commitdiff
print constraints
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Mon, 5 Feb 2001 10:00:23 +0000 (10:00 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Mon, 5 Feb 2001 10:00:23 +0000 (10:00 +0000)
git-svn-id: https://svn.dealii.org/trunk@3855 0785d39b-7218-0410-832d-ea1e28bc413d

tests/fe/internals.cc

index 9dfa30358eaa4193b75844d66f16451f706bfb17..aa5348954d1ac2dfdc0bebcecd3f6e0ee821eac9 100644 (file)
@@ -15,6 +15,7 @@
 #include <fe/fe_values.h>
 #include <vector>
 #include <fstream>
+#include <iomanip>
 #include <string>
 
 template <int dim>
@@ -35,7 +36,7 @@ check_support (FiniteElement<dim>& finel, const char* name)
   cout << name << '<' << dim << '>' << " cell support points" << endl;
   
   for (unsigned int k=0;k<cell_points.size();++k)
-    cout << cell_points[k] << endl;
+    cout << setprecision(3) << cell_points[k] << endl;
   
   for (unsigned int i=0;i<GeometryInfo<dim>::faces_per_cell;++i)
     {
@@ -44,7 +45,7 @@ check_support (FiniteElement<dim>& finel, const char* name)
       finel.get_face_support_points (face, face_points);
       
       for (unsigned int k=0;k<face_points.size();++k)
-       cout << face_points[k] << endl;
+       cout << setprecision(3) << face_points[k] << endl;
     }
 }
 
@@ -52,6 +53,9 @@ template <int dim>
 inline void
 check_matrices (FiniteElement<dim>& fe, const char* name)
 {
+  cout << name << '<' << dim << '>' << " constraint " << endl;
+  fe.constraints().print_formatted (cout, 7, false, 10, "~");
+
   for (unsigned int i=0;i<GeometryInfo<dim>::children_per_cell;++i)
     {
       cout << name << '<' << dim << '>' << " restriction " << i << 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.