rheolef  6.5
reference_element_tst.cc
Go to the documentation of this file.
1 #include "rheolef/reference_element.h"
2 //#include "rheolef/geo_element.h"
3 using namespace rheolef;
4 using namespace std;
5 
6 int main() {
8  char elt[] = { 'p', 'e', 't', 'q', 'T', 'P', 'H' };
9 
10  const size_t max_n_subgeo = 12;
11  const size_t max_subgeo_vertex = 8;
12  for (size_type k = 0; k < reference_element::max_variant; k++) {
14  K.set_name(elt[k]);
15  cout << K.name() << endl;
16  for (size_type d = 0; d < 4; d++) {
17  cout << " subgeo " << d << "D: " << endl;
18  for (size_type i = 0; i < K.n_subgeo(d); i++) {
19  cout << " " << i << ": ";
20  for (size_type j = 0; j < K.subgeo_size(d,i); j++) {
21  size_type vertex = K.subgeo_local_vertex (d,i,j);
22  cout << int(vertex);
23  }
24  for (size_type j = K.subgeo_size(d,i); j < max_subgeo_vertex; j++) {
25  cout << "_";
26  }
27  cout << endl;
28  }
29  for (size_type i = K.n_subgeo(d); i < max_n_subgeo; i++) {
30  cout << " " << i << ": ";
31  for (size_type j = 0; j < max_subgeo_vertex; j++) {
32  cout << "_";
33  }
34  cout << endl;
35  }
36  }
37  }
38  return 0;
39 }
40 
41