17 {232, {1, 2, 3, 6, 4, 5}},
18 {342, {1, 2, 3, 4, 7, 5, 6, 8, 9, 10}},
19 {352, {1, 2, 3, 4, 5, 6, 9, 7, 8, 12, 10, 11, 13, 14, 15}},
20 {542, {1, 2, 3, 4, 9, 10, 11, 12, 5, 6, 7, 8, 13, 14, 15, 16}},
25 static struct conn_conv conn_conv_nastran[] = {
35 static int conn_comp(
const void *c1,
const void *c2) {
36 int co1 = ((
struct conn_order *)c1)->hecmw_order;
37 int co2 = ((
struct conn_order *)c2)->hecmw_order;
39 if (co1 == co2)
return 0;
41 if (co1 < co2)
return -1;
53 "Connectivity contversion: 'conn' is NULL");
62 from_table = conn_conv_abaqus;
67 from_table = conn_conv_nastran;
73 "Connectivity conversion: Unsupported connectivity type");
79 "Connectivity conversion: Invalid 'hecmw_etype'");
86 for (j = 0; j < n; j++) {
87 order[j].
node = conn[j];
91 qsort(order, n,
sizeof(*order), conn_comp);
93 for (j = 0; j < n; j++) {
94 conn[j] = order[j].
node;