45 const double eps = 1e-6;
51 std::vector< EntityHandle > nodes;
57 std::vector< int > ids( nodes.size() );
60 std::vector< int > sorted_ids( ids );
61 std::sort( sorted_ids.begin(), sorted_ids.end() );
63 std::vector< double > coords( 3 * nodes.size() );
69 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
76 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
83 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
91 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
98 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
105 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
112 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
120 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
127 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
134 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
141 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
149 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
156 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
163 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
170 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
178 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
185 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
198 std::vector< EntityHandle > tets;
204 std::vector< int > ids( tets.size() );
218 const int conn1[] = { 13, 14, 15, 16 };
219 int pos = 0, offset = 3;
227 const int conn2[] = { 13, 17, 14, 16 };
243 std::vector< EntityHandle > hexes;
249 std::vector< int > ids( hexes.size() );
256 const int conn1[] = { 1, 2, 3, 4, 5, 6, 7, 8 };
257 int pos = 0, offset = 1;
265 const int conn2[] = { 2, 9, 10, 3, 6, 11, 12, 7 };
287 const int mat_set_id = 100;
288 const void*
const mat_set_id_val[] = { &mat_set_id };
292 std::vector< EntityHandle > elements, contents;
296 std::sort( elements.begin(), elements.end() );
297 std::sort( contents.begin(), contents.end() );
313 const int phys_set_id = 4;
314 const void*
const phys_set_id_val[] = { &phys_set_id };
318 std::vector< EntityHandle > tets, contents;
321 std::sort( tets.begin(), tets.end() );
322 std::sort( contents.begin(), contents.end() );