20 static int set_hecmw_flag_adapt(
void *dst) {
26 memcpy(dst, src, size);
31 static int set_hecmw_flag_initcon(
void *dst) {
37 memcpy(dst, src, size);
42 static int set_hecmw_flag_parttype(
void *dst) {
48 memcpy(dst, src, size);
53 static int set_hecmw_flag_partdepth(
void *dst) {
59 memcpy(dst, src, size);
63 static int set_hecmw_flag_version(
void *dst) {
69 memcpy(dst, src, size);
74 static int set_hecmw_flag_partcontact(
void *dst) {
80 memcpy(dst, src, size);
85 static int set_gridfile(
void *dst) {
94 static int set_hecmw_n_file(
void *dst) {
100 memcpy(dst, src, size);
105 static int set_files(
void *dst) {
112 char *src = mesh->
files[i];
119 static int set_header(
void *dst) {
128 static int set_zero_temp(
void *dst) {
134 memcpy(dst, src, size);
139 static int set_n_node(
void *dst) {
144 size =
sizeof(mesh->
n_node);
145 memcpy(dst, src, size);
150 static int set_n_node_gross(
void *dst) {
156 memcpy(dst, src, size);
161 static int set_nn_middle(
void *dst) {
167 memcpy(dst, src, size);
172 static int set_nn_internal(
void *dst) {
178 memcpy(dst, src, size);
183 static int set_node_internal_list(
void *dst) {
191 memcpy(dst, src, size);
196 static int set_node_ID(
void *dst) {
204 memcpy(dst, src, size);
209 static int set_global_node_ID(
void *dst) {
217 memcpy(dst, src, size);
222 static int set_node(
void *dst) {
230 memcpy(dst, src, size);
235 static int set_n_dof(
void *dst) {
240 size =
sizeof(mesh->
n_dof);
241 memcpy(dst, src, size);
246 static int set_n_dof_grp(
void *dst) {
252 memcpy(dst, src, size);
257 static int set_n_dof_tot(
void *dst) {
263 memcpy(dst, src, size);
268 static int set_node_dof_index(
void *dst) {
276 memcpy(dst, src, size);
281 static int set_node_dof_item(
void *dst) {
289 memcpy(dst, src, size);
294 static int set_node_val_index(
void *dst) {
302 memcpy(dst, src, size);
307 static int set_node_val_item(
void *dst) {
316 memcpy(dst, src, size);
321 static int set_node_init_val_index(
void *dst) {
329 memcpy(dst, src, size);
334 static int set_node_init_val_item(
void *dst) {
343 memcpy(dst, src, size);
348 static int set_n_elem(
void *dst) {
353 size =
sizeof(mesh->
n_elem);
354 memcpy(dst, src, size);
359 static int set_n_elem_gross(
void *dst) {
365 memcpy(dst, src, size);
370 static int set_ne_internal(
void *dst) {
376 memcpy(dst, src, size);
381 static int set_elem_internal_list(
void *dst) {
389 memcpy(dst, src, size);
394 static int set_elem_ID(
void *dst) {
402 memcpy(dst, src, size);
407 static int set_global_elem_ID(
void *dst) {
415 memcpy(dst, src, size);
420 static int set_elem_type(
void *dst) {
428 memcpy(dst, src, size);
433 static int set_n_elem_type(
void *dst) {
439 memcpy(dst, src, size);
444 static int set_elem_type_index(
void *dst) {
452 memcpy(dst, src, size);
457 static int set_elem_type_item(
void *dst) {
465 memcpy(dst, src, size);
470 static int set_elem_node_index(
void *dst) {
478 memcpy(dst, src, size);
483 static int set_elem_node_item(
void *dst) {
492 memcpy(dst, src, size);
497 static int set_section_ID(
void *dst) {
505 memcpy(dst, src, size);
510 static int set_n_elem_mat_ID(
void *dst) {
516 memcpy(dst, src, size);
521 static int set_elem_mat_ID_index(
void *dst) {
529 memcpy(dst, src, size);
534 static int set_elem_mat_ID_item(
void *dst) {
543 memcpy(dst, src, size);
548 static int set_elem_mat_int_index(
void *dst) {
556 memcpy(dst, src, size);
561 static int set_elem_mat_int_val(
void *dst) {
570 memcpy(dst, src, size);
575 static int set_elem_val_index(
void *dst) {
583 memcpy(dst, src, size);
588 static int set_elem_val_item(
void *dst) {
597 memcpy(dst, src, size);
602 static int set_zero(
void *dst) {
607 size =
sizeof(mesh->
zero);
608 memcpy(dst, src, size);
613 static int set_HECMW_COMM(
void *dst) {
621 memcpy(dst, src, size);
626 static int set_PETOT(
void *dst) {
631 size =
sizeof(mesh->
PETOT);
632 memcpy(dst, src, size);
637 static int set_PEsmpTOT(
void *dst) {
643 memcpy(dst, src, size);
648 static int set_my_rank(
void *dst) {
654 memcpy(dst, src, size);
659 static int set_errnof(
void *dst) {
664 size =
sizeof(mesh->
errnof);
665 memcpy(dst, src, size);
670 static int set_n_subdomain(
void *dst) {
676 memcpy(dst, src, size);
681 static int set_n_neighbor_pe(
void *dst) {
687 memcpy(dst, src, size);
692 static int set_neighbor_pe(
void *dst) {
700 memcpy(dst, src, size);
705 static int set_import_index(
void *dst) {
713 memcpy(dst, src, size);
718 static int set_import_item(
void *dst) {
726 memcpy(dst, src, size);
731 static int set_export_index(
void *dst) {
739 memcpy(dst, src, size);
744 static int set_export_item(
void *dst) {
752 memcpy(dst, src, size);
757 static int set_shared_index(
void *dst) {
765 memcpy(dst, src, size);
770 static int set_shared_item(
void *dst) {
778 memcpy(dst, src, size);
783 static int set_coarse_grid_level(
void *dst) {
789 memcpy(dst, src, size);
794 static int set_n_adapt(
void *dst) {
800 memcpy(dst, src, size);
805 static int set_when_i_was_refined_node(
void *dst) {
813 memcpy(dst, src, size);
818 static int set_when_i_was_refined_elem(
void *dst) {
826 memcpy(dst, src, size);
831 static int set_adapt_parent_type(
void *dst) {
839 memcpy(dst, src, size);
844 static int set_adapt_type(
void *dst) {
852 memcpy(dst, src, size);
857 static int set_adapt_level(
void *dst) {
865 memcpy(dst, src, size);
870 static int set_adapt_parent(
void *dst) {
878 memcpy(dst, src, size);
883 static int set_adapt_children_index(
void *dst) {
891 memcpy(dst, src, size);
896 static int set_adapt_children_item(
void *dst) {
905 memcpy(dst, src, size);
910 static int set_n_refine(
void *dst) {
916 memcpy(dst, src, size);
921 static int set_node_old2new(
void *dst) {
929 memcpy(dst, src, size);
934 static int set_node_new2old(
void *dst) {
942 memcpy(dst, src, size);
947 static int set_elem_old2new(
void *dst) {
955 memcpy(dst, src, size);
960 static int set_elem_new2old(
void *dst) {
968 memcpy(dst, src, size);
973 static int set_n_node_refine_hist(
void *dst) {
982 memcpy(dst, src, size);
987 static int set_n_sect(
void *dst) {
993 size =
sizeof(sect->
n_sect);
994 memcpy(dst, src, size);
999 static int set_sect_type(
void *dst) {
1004 if (sect->
n_sect <= 0)
return 0;
1008 memcpy(dst, src, size);
1013 static int set_sect_opt(
void *dst) {
1018 if (sect->
n_sect <= 0)
return 0;
1022 memcpy(dst, src, size);
1027 static int set_sect_mat_ID_index(
void *dst) {
1032 if (sect->
n_sect <= 0)
return 0;
1036 memcpy(dst, src, size);
1041 static int set_sect_mat_ID_item(
void *dst) {
1046 if (sect->
n_sect <= 0)
return 0;
1051 memcpy(dst, src, size);
1056 static int set_sect_I_index(
void *dst) {
1061 if (sect->
n_sect <= 0)
return 0;
1065 memcpy(dst, src, size);
1070 static int set_sect_I_item(
void *dst) {
1075 if (sect->
n_sect <= 0)
return 0;
1080 memcpy(dst, src, size);
1085 static int set_sect_R_index(
void *dst) {
1090 if (sect->
n_sect <= 0)
return 0;
1094 memcpy(dst, src, size);
1099 static int set_sect_R_item(
void *dst) {
1104 if (sect->
n_sect <= 0)
return 0;
1108 memcpy(dst, src, size);
1113 static int set_n_mat(
void *dst) {
1119 size =
sizeof(mat->
n_mat);
1120 memcpy(dst, src, size);
1125 static int set_n_mat_item(
void *dst) {
1132 memcpy(dst, src, size);
1137 static int set_n_mat_subitem(
void *dst) {
1144 memcpy(dst, src, size);
1149 static int set_n_mat_table(
void *dst) {
1156 memcpy(dst, src, size);
1161 static int set_mat_name(
void *dst) {
1165 if (mat->
n_mat <= 0)
return 0;
1167 for (i = 0; i < mat->
n_mat; i++) {
1176 static int set_mat_item_index(
void *dst) {
1181 if (mat->
n_mat <= 0)
return 0;
1185 memcpy(dst, src, size);
1190 static int set_mat_subitem_index(
void *dst) {
1199 memcpy(dst, src, size);
1204 static int set_mat_table_index(
void *dst) {
1213 memcpy(dst, src, size);
1218 static int set_mat_val(
void *dst) {
1223 if (mat->
n_mat <= 0)
return 0;
1227 memcpy(dst, src, size);
1232 static int set_mat_temp(
void *dst) {
1237 if (mat->
n_mat <= 0)
return 0;
1241 memcpy(dst, src, size);
1246 static int set_n_mpc(
void *dst) {
1252 size =
sizeof(mpc->
n_mpc);
1253 memcpy(dst, src, size);
1258 static int set_mpc_index(
void *dst) {
1263 if (mpc->
n_mpc <= 0)
return 0;
1267 memcpy(dst, src, size);
1272 static int set_mpc_item(
void *dst) {
1277 if (mpc->
n_mpc <= 0)
return 0;
1281 memcpy(dst, src, size);
1286 static int set_mpc_dof(
void *dst) {
1291 if (mpc->
n_mpc <= 0)
return 0;
1295 memcpy(dst, src, size);
1300 static int set_mpc_val(
void *dst) {
1305 if (mpc->
n_mpc <= 0)
return 0;
1309 memcpy(dst, src, size);
1314 static int set_mpc_const(
void *dst) {
1319 if (mpc->
n_mpc <= 0)
return 0;
1323 memcpy(dst, src, size);
1328 static int set_n_amp(
void *dst) {
1334 size =
sizeof(amp->
n_amp);
1335 memcpy(dst, src, size);
1340 static int set_amp_name(
void *dst) {
1344 if (amp->
n_amp <= 0)
return 0;
1346 for (i = 0; i < amp->
n_amp; i++) {
1355 static int set_amp_type_definition(
void *dst) {
1360 if (amp->
n_amp <= 0)
return 0;
1364 memcpy(dst, src, size);
1369 static int set_amp_type_time(
void *dst) {
1374 if (amp->
n_amp <= 0)
return 0;
1378 memcpy(dst, src, size);
1383 static int set_amp_type_value(
void *dst) {
1388 if (amp->
n_amp <= 0)
return 0;
1392 memcpy(dst, src, size);
1397 static int set_amp_index(
void *dst) {
1402 if (amp->
n_amp <= 0)
return 0;
1406 memcpy(dst, src, size);
1411 static int set_amp_val(
void *dst) {
1416 if (amp->
n_amp <= 0)
return 0;
1420 memcpy(dst, src, size);
1425 static int set_amp_table(
void *dst) {
1430 if (amp->
n_amp <= 0)
return 0;
1434 memcpy(dst, src, size);
1439 static int set_ngrp_n_grp(
void *dst) {
1445 size =
sizeof(grp->
n_grp);
1446 memcpy(dst, src, size);
1451 static int set_ngrp_n_bc(
void *dst) {
1457 size =
sizeof(grp->
n_bc);
1458 memcpy(dst, src, size);
1463 static int set_ngrp_grp_name(
void *dst) {
1467 if (grp->
n_grp <= 0)
return 0;
1469 for (i = 0; i < grp->
n_grp; i++) {
1478 static int set_ngrp_grp_index(
void *dst) {
1483 if (grp->
n_grp <= 0)
return 0;
1487 memcpy(dst, src, size);
1492 static int set_ngrp_grp_item(
void *dst) {
1497 if (grp->
n_grp <= 0)
return 0;
1501 memcpy(dst, src, size);
1506 static int set_ngrp_bc_grp_ID(
void *dst) {
1511 if (grp->
n_bc <= 0)
return 0;
1515 memcpy(dst, src, size);
1520 static int set_ngrp_bc_grp_type(
void *dst) {
1525 if (grp->
n_bc <= 0)
return 0;
1529 memcpy(dst, src, size);
1534 static int set_ngrp_bc_grp_index(
void *dst) {
1539 if (grp->
n_bc <= 0)
return 0;
1543 memcpy(dst, src, size);
1548 static int set_ngrp_bc_grp_dof(
void *dst) {
1553 if (grp->
n_bc <= 0)
return 0;
1557 memcpy(dst, src, size);
1562 static int set_ngrp_bc_grp_val(
void *dst) {
1567 if (grp->
n_bc <= 0)
return 0;
1571 memcpy(dst, src, size);
1576 static int set_egrp_n_grp(
void *dst) {
1582 size =
sizeof(grp->
n_grp);
1583 memcpy(dst, src, size);
1588 static int set_egrp_n_bc(
void *dst) {
1594 size =
sizeof(grp->
n_bc);
1595 memcpy(dst, src, size);
1600 static int set_egrp_grp_name(
void *dst) {
1604 if (grp->
n_grp <= 0)
return 0;
1606 for (i = 0; i < grp->
n_grp; i++) {
1615 static int set_egrp_grp_index(
void *dst) {
1620 if (grp->
n_grp <= 0)
return 0;
1624 memcpy(dst, src, size);
1629 static int set_egrp_grp_item(
void *dst) {
1634 if (grp->
n_grp <= 0)
return 0;
1638 memcpy(dst, src, size);
1643 static int set_egrp_bc_grp_ID(
void *dst) {
1648 if (grp->
n_bc <= 0)
return 0;
1652 memcpy(dst, src, size);
1657 static int set_egrp_bc_grp_type(
void *dst) {
1662 if (grp->
n_bc <= 0)
return 0;
1666 memcpy(dst, src, size);
1671 static int set_egrp_bc_grp_index(
void *dst) {
1676 if (grp->
n_bc <= 0)
return 0;
1680 memcpy(dst, src, size);
1685 static int set_egrp_bc_grp_val(
void *dst) {
1690 if (grp->
n_bc <= 0)
return 0;
1694 memcpy(dst, src, size);
1699 static int set_sgrp_n_grp(
void *dst) {
1705 size =
sizeof(grp->
n_grp);
1706 memcpy(dst, src, size);
1711 static int set_sgrp_n_bc(
void *dst) {
1717 size =
sizeof(grp->
n_bc);
1718 memcpy(dst, src, size);
1723 static int set_sgrp_grp_name(
void *dst) {
1727 if (grp->
n_grp <= 0)
return 0;
1729 for (i = 0; i < grp->
n_grp; i++) {
1738 static int set_sgrp_grp_index(
void *dst) {
1743 if (grp->
n_grp <= 0)
return 0;
1747 memcpy(dst, src, size);
1752 static int set_sgrp_grp_item(
void *dst) {
1757 if (grp->
n_grp <= 0)
return 0;
1761 memcpy(dst, src, size);
1766 static int set_sgrp_bc_grp_ID(
void *dst) {
1771 if (grp->
n_bc <= 0)
return 0;
1775 memcpy(dst, src, size);
1780 static int set_sgrp_bc_grp_type(
void *dst) {
1785 if (grp->
n_bc <= 0)
return 0;
1789 memcpy(dst, src, size);
1794 static int set_sgrp_bc_grp_index(
void *dst) {
1799 if (grp->
n_bc <= 0)
return 0;
1803 memcpy(dst, src, size);
1808 static int set_sgrp_bc_grp_val(
void *dst) {
1813 if (grp->
n_bc <= 0)
return 0;
1817 memcpy(dst, src, size);
1822 static int set_contact_pair_n_pair(
void *dst) {
1828 size =
sizeof(cpair->
n_pair);
1829 memcpy(dst, src, size);
1834 static int set_contact_pair_name(
void *dst) {
1838 if (cpair->
n_pair <= 0)
return 0;
1840 for (i = 0; i < cpair->
n_pair; i++) {
1842 char *src = cpair->
name[i];
1849 static int set_contact_pair_type(
void *dst) {
1854 if (cpair->
n_pair <= 0)
return 0;
1857 size =
sizeof(*cpair->
type) * (cpair->
n_pair);
1858 memcpy(dst, src, size);
1863 static int set_contact_pair_slave_grp_id(
void *dst) {
1868 if (cpair->
n_pair <= 0)
return 0;
1872 memcpy(dst, src, size);
1877 static int set_contact_pair_slave_orisgrp_id(
void *dst) {
1882 if (cpair->
n_pair <= 0)
return 0;
1886 memcpy(dst, src, size);
1891 static int set_contact_pair_master_grp_id(
void *dst) {
1896 if (cpair->
n_pair <= 0)
return 0;
1900 memcpy(dst, src, size);
1905 static int set_refine_origin_index(
void *dst) {
1910 src = reforg->
index;
1912 memcpy(dst, src, size);
1917 static int set_refine_origin_item_index(
void *dst) {
1924 memcpy(dst, src, size);
1929 static int set_refine_origin_item_item(
void *dst) {
1937 memcpy(dst, src, size);
1944 static int is_alloc_node_internal_list(
void) {
1948 static int is_alloc_node_val_index(
void) {
1952 static int is_alloc_node_val_item(
void) {
return mesh->
node_val_item ? 1 : 0; }
1954 static int is_alloc_node_init_val_index(
void) {
1958 static int is_alloc_node_init_val_item(
void) {
1962 static int is_alloc_elem_internal_list(
void) {
1966 static int is_alloc_elem_mat_int_index(
void) {
1970 static int is_alloc_elem_mat_int_val(
void) {
1974 static int is_alloc_elem_val_index(
void) {
1978 static int is_alloc_elem_val_item(
void) {
return mesh->
elem_val_item ? 1 : 0; }
1980 static int is_alloc_node_old2new(
void) {
return mesh->
node_old2new ? 1 : 0; }
1982 static int is_alloc_node_new2old(
void) {
return mesh->
node_new2old ? 1 : 0; }
1984 static int is_alloc_elem_old2new(
void) {
return mesh->
elem_old2new ? 1 : 0; }
1986 static int is_alloc_elem_new2old(
void) {
return mesh->
elem_new2old ? 1 : 0; }
1988 static int is_alloc_n_node_refine_hist(
void) {
1992 static int is_alloc_when_i_was_refined_node(
void) {
1996 static int is_alloc_when_i_was_refined_elem(
void) {
2000 static int is_alloc_adapt_parent_type(
void) {
2004 static int is_alloc_adapt_type(
void) {
return mesh->
adapt_type ? 1 : 0; }
2006 static int is_alloc_adapt_level(
void) {
return mesh->
adapt_level ? 1 : 0; }
2008 static int is_alloc_adapt_parent(
void) {
return mesh->
adapt_parent ? 1 : 0; }
2010 static int is_alloc_adapt_children_index(
void) {
2014 static int is_alloc_adapt_children_item(
void) {
2018 static int is_alloc_ngrp_bc_grp_ID(
void) {
2022 static int is_alloc_ngrp_bc_grp_type(
void) {
2026 static int is_alloc_ngrp_bc_grp_index(
void) {
2030 static int is_alloc_ngrp_bc_grp_dof(
void) {
2034 static int is_alloc_ngrp_bc_grp_val(
void) {
2038 static int is_alloc_egrp_bc_grp_ID(
void) {
2042 static int is_alloc_egrp_bc_grp_type(
void) {
2046 static int is_alloc_egrp_bc_grp_index(
void) {
2050 static int is_alloc_egrp_bc_grp_val(
void) {
2054 static int is_alloc_sgrp_bc_grp_ID(
void) {
2058 static int is_alloc_sgrp_bc_grp_type(
void) {
2062 static int is_alloc_sgrp_bc_grp_index(
void) {
2066 static int is_alloc_sgrp_bc_grp_val(
void) {
2077 static struct func_table {
2086 {
"hecmwST_local_mesh",
"hecmw_flag_adapt", set_hecmw_flag_adapt,
NULL},
2087 {
"hecmwST_local_mesh",
"hecmw_flag_initcon", set_hecmw_flag_initcon,
2089 {
"hecmwST_local_mesh",
"hecmw_flag_parttype", set_hecmw_flag_parttype,
2091 {
"hecmwST_local_mesh",
"hecmw_flag_partdepth", set_hecmw_flag_partdepth,
2093 {
"hecmwST_local_mesh",
"hecmw_flag_version", set_hecmw_flag_version,
2095 {
"hecmwST_local_mesh",
"hecmw_flag_partcontact",
2096 set_hecmw_flag_partcontact,
NULL},
2098 {
"hecmwST_local_mesh",
"gridfile", set_gridfile,
NULL},
2099 {
"hecmwST_local_mesh",
"hecmw_n_file", set_hecmw_n_file,
NULL},
2100 {
"hecmwST_local_mesh",
"files", set_files,
NULL},
2101 {
"hecmwST_local_mesh",
"header", set_header,
NULL},
2102 {
"hecmwST_local_mesh",
"zero_temp", set_zero_temp,
NULL},
2104 {
"hecmwST_local_mesh",
"n_node", set_n_node,
NULL},
2105 {
"hecmwST_local_mesh",
"n_node_gross", set_n_node_gross,
NULL},
2106 {
"hecmwST_local_mesh",
"nn_middle", set_nn_middle,
NULL},
2107 {
"hecmwST_local_mesh",
"nn_internal", set_nn_internal,
NULL},
2108 {
"hecmwST_local_mesh",
"node_internal_list", set_node_internal_list,
2109 is_alloc_node_internal_list},
2110 {
"hecmwST_local_mesh",
"node_ID", set_node_ID,
NULL},
2111 {
"hecmwST_local_mesh",
"global_node_ID", set_global_node_ID,
NULL},
2112 {
"hecmwST_local_mesh",
"node", set_node,
NULL},
2113 {
"hecmwST_local_mesh",
"n_dof", set_n_dof,
NULL},
2114 {
"hecmwST_local_mesh",
"n_dof_grp", set_n_dof_grp,
NULL},
2115 {
"hecmwST_local_mesh",
"n_dof_tot", set_n_dof_tot,
NULL},
2116 {
"hecmwST_local_mesh",
"node_dof_index", set_node_dof_index,
NULL},
2117 {
"hecmwST_local_mesh",
"node_dof_item", set_node_dof_item,
NULL},
2118 {
"hecmwST_local_mesh",
"node_val_index", set_node_val_index,
2119 is_alloc_node_val_index},
2120 {
"hecmwST_local_mesh",
"node_val_item", set_node_val_item,
2121 is_alloc_node_val_item},
2122 {
"hecmwST_local_mesh",
"node_init_val_index", set_node_init_val_index,
2123 is_alloc_node_init_val_index},
2124 {
"hecmwST_local_mesh",
"node_init_val_item", set_node_init_val_item,
2125 is_alloc_node_init_val_item},
2126 {
"hecmwST_local_mesh",
"n_elem", set_n_elem,
NULL},
2127 {
"hecmwST_local_mesh",
"n_elem_gross", set_n_elem_gross,
NULL},
2128 {
"hecmwST_local_mesh",
"ne_internal", set_ne_internal,
NULL},
2129 {
"hecmwST_local_mesh",
"elem_internal_list", set_elem_internal_list,
2130 is_alloc_elem_internal_list},
2131 {
"hecmwST_local_mesh",
"elem_ID", set_elem_ID,
NULL},
2132 {
"hecmwST_local_mesh",
"global_elem_ID", set_global_elem_ID,
NULL},
2133 {
"hecmwST_local_mesh",
"elem_type", set_elem_type,
NULL},
2134 {
"hecmwST_local_mesh",
"n_elem_type", set_n_elem_type,
NULL},
2135 {
"hecmwST_local_mesh",
"elem_type_index", set_elem_type_index,
NULL},
2136 {
"hecmwST_local_mesh",
"elem_type_item", set_elem_type_item,
NULL},
2137 {
"hecmwST_local_mesh",
"elem_node_index", set_elem_node_index,
NULL},
2138 {
"hecmwST_local_mesh",
"elem_node_item", set_elem_node_item,
NULL},
2139 {
"hecmwST_local_mesh",
"section_ID", set_section_ID,
NULL},
2140 {
"hecmwST_local_mesh",
"n_elem_mat_ID", set_n_elem_mat_ID,
NULL},
2141 {
"hecmwST_local_mesh",
"elem_mat_ID_index", set_elem_mat_ID_index,
2143 {
"hecmwST_local_mesh",
"elem_mat_ID_item", set_elem_mat_ID_item,
NULL},
2144 {
"hecmwST_local_mesh",
"elem_mat_int_index", set_elem_mat_int_index,
2145 is_alloc_elem_mat_int_index},
2146 {
"hecmwST_local_mesh",
"elem_mat_int_val", set_elem_mat_int_val,
2147 is_alloc_elem_mat_int_val},
2148 {
"hecmwST_local_mesh",
"elem_val_index", set_elem_val_index,
2149 is_alloc_elem_val_index},
2150 {
"hecmwST_local_mesh",
"elem_val_item", set_elem_val_item,
2151 is_alloc_elem_val_item},
2153 {
"hecmwST_local_mesh",
"zero", set_zero,
NULL},
2154 {
"hecmwST_local_mesh",
"HECMW_COMM", set_HECMW_COMM,
NULL},
2155 {
"hecmwST_local_mesh",
"PETOT", set_PETOT,
NULL},
2156 {
"hecmwST_local_mesh",
"PEsmpTOT", set_PEsmpTOT,
NULL},
2157 {
"hecmwST_local_mesh",
"my_rank", set_my_rank,
NULL},
2158 {
"hecmwST_local_mesh",
"errnof", set_errnof,
NULL},
2159 {
"hecmwST_local_mesh",
"n_subdomain", set_n_subdomain,
NULL},
2160 {
"hecmwST_local_mesh",
"n_neighbor_pe", set_n_neighbor_pe,
NULL},
2161 {
"hecmwST_local_mesh",
"neighbor_pe", set_neighbor_pe,
NULL},
2162 {
"hecmwST_local_mesh",
"import_index", set_import_index,
NULL},
2163 {
"hecmwST_local_mesh",
"import_item", set_import_item,
NULL},
2164 {
"hecmwST_local_mesh",
"export_index", set_export_index,
NULL},
2165 {
"hecmwST_local_mesh",
"export_item", set_export_item,
NULL},
2166 {
"hecmwST_local_mesh",
"shared_index", set_shared_index,
NULL},
2167 {
"hecmwST_local_mesh",
"shared_item", set_shared_item,
NULL},
2169 {
"hecmwST_local_mesh",
"coarse_grid_level", set_coarse_grid_level,
2171 {
"hecmwST_local_mesh",
"n_adapt", set_n_adapt,
NULL},
2172 {
"hecmwST_local_mesh",
"when_i_was_refined_node",
2173 set_when_i_was_refined_node, is_alloc_when_i_was_refined_node},
2174 {
"hecmwST_local_mesh",
"when_i_was_refined_elem",
2175 set_when_i_was_refined_elem, is_alloc_when_i_was_refined_elem},
2176 {
"hecmwST_local_mesh",
"adapt_parent_type", set_adapt_parent_type,
2177 is_alloc_adapt_parent_type},
2178 {
"hecmwST_local_mesh",
"adapt_type", set_adapt_type,
2179 is_alloc_adapt_type},
2180 {
"hecmwST_local_mesh",
"adapt_level", set_adapt_level,
2181 is_alloc_adapt_level},
2182 {
"hecmwST_local_mesh",
"adapt_parent", set_adapt_parent,
2183 is_alloc_adapt_parent},
2184 {
"hecmwST_local_mesh",
"adapt_children_index", set_adapt_children_index,
2185 is_alloc_adapt_children_index},
2186 {
"hecmwST_local_mesh",
"adapt_children_item", set_adapt_children_item,
2187 is_alloc_adapt_children_item},
2189 {
"hecmwST_local_mesh",
"n_refine", set_n_refine,
NULL},
2190 {
"hecmwST_local_mesh",
"node_old2new", set_node_old2new,
2191 is_alloc_node_old2new},
2192 {
"hecmwST_local_mesh",
"node_new2old", set_node_new2old,
2193 is_alloc_node_new2old},
2194 {
"hecmwST_local_mesh",
"elem_old2new", set_elem_old2new,
2195 is_alloc_elem_old2new},
2196 {
"hecmwST_local_mesh",
"elem_new2old", set_elem_new2old,
2197 is_alloc_elem_new2old},
2198 {
"hecmwST_local_mesh",
"n_node_refine_hist", set_n_node_refine_hist,
2199 is_alloc_n_node_refine_hist},
2201 {
"hecmwST_section",
"n_sect", set_n_sect,
NULL},
2202 {
"hecmwST_section",
"sect_type", set_sect_type,
NULL},
2203 {
"hecmwST_section",
"sect_opt", set_sect_opt,
NULL},
2204 {
"hecmwST_section",
"sect_mat_ID_index", set_sect_mat_ID_index,
NULL},
2205 {
"hecmwST_section",
"sect_mat_ID_item", set_sect_mat_ID_item,
NULL},
2206 {
"hecmwST_section",
"sect_I_index", set_sect_I_index,
NULL},
2207 {
"hecmwST_section",
"sect_I_item", set_sect_I_item,
NULL},
2208 {
"hecmwST_section",
"sect_R_index", set_sect_R_index,
NULL},
2209 {
"hecmwST_section",
"sect_R_item", set_sect_R_item,
NULL},
2211 {
"hecmwST_material",
"n_mat", set_n_mat,
NULL},
2212 {
"hecmwST_material",
"n_mat_item", set_n_mat_item,
NULL},
2213 {
"hecmwST_material",
"n_mat_subitem", set_n_mat_subitem,
NULL},
2214 {
"hecmwST_material",
"n_mat_table", set_n_mat_table,
NULL},
2215 {
"hecmwST_material",
"mat_name", set_mat_name,
NULL},
2216 {
"hecmwST_material",
"mat_item_index", set_mat_item_index,
NULL},
2217 {
"hecmwST_material",
"mat_subitem_index", set_mat_subitem_index,
NULL},
2218 {
"hecmwST_material",
"mat_table_index", set_mat_table_index,
NULL},
2219 {
"hecmwST_material",
"mat_val", set_mat_val,
NULL},
2220 {
"hecmwST_material",
"mat_temp", set_mat_temp,
NULL},
2222 {
"hecmwST_mpc",
"n_mpc", set_n_mpc,
NULL},
2223 {
"hecmwST_mpc",
"mpc_index", set_mpc_index,
NULL},
2224 {
"hecmwST_mpc",
"mpc_item", set_mpc_item,
NULL},
2225 {
"hecmwST_mpc",
"mpc_dof", set_mpc_dof,
NULL},
2226 {
"hecmwST_mpc",
"mpc_val", set_mpc_val,
NULL},
2227 {
"hecmwST_mpc",
"mpc_const", set_mpc_const,
NULL},
2229 {
"hecmwST_amplitude",
"n_amp", set_n_amp,
NULL},
2230 {
"hecmwST_amplitude",
"amp_name", set_amp_name,
NULL},
2231 {
"hecmwST_amplitude",
"amp_type_definition", set_amp_type_definition,
2233 {
"hecmwST_amplitude",
"amp_type_time", set_amp_type_time,
NULL},
2234 {
"hecmwST_amplitude",
"amp_type_value", set_amp_type_value,
NULL},
2235 {
"hecmwST_amplitude",
"amp_index", set_amp_index,
NULL},
2236 {
"hecmwST_amplitude",
"amp_val", set_amp_val,
NULL},
2237 {
"hecmwST_amplitude",
"amp_table", set_amp_table,
NULL},
2239 {
"hecmwST_node_grp",
"n_grp", set_ngrp_n_grp,
NULL},
2240 {
"hecmwST_node_grp",
"grp_name", set_ngrp_grp_name,
NULL},
2241 {
"hecmwST_node_grp",
"grp_index", set_ngrp_grp_index,
NULL},
2242 {
"hecmwST_node_grp",
"grp_item", set_ngrp_grp_item,
NULL},
2243 {
"hecmwST_node_grp",
"n_bc", set_ngrp_n_bc,
NULL},
2244 {
"hecmwST_node_grp",
"bc_grp_ID", set_ngrp_bc_grp_ID,
2245 is_alloc_ngrp_bc_grp_ID},
2246 {
"hecmwST_node_grp",
"bc_grp_type", set_ngrp_bc_grp_type,
2247 is_alloc_ngrp_bc_grp_type},
2248 {
"hecmwST_node_grp",
"bc_grp_index", set_ngrp_bc_grp_index,
2249 is_alloc_ngrp_bc_grp_index},
2250 {
"hecmwST_node_grp",
"bc_grp_dof", set_ngrp_bc_grp_dof,
2251 is_alloc_ngrp_bc_grp_dof},
2252 {
"hecmwST_node_grp",
"bc_grp_val", set_ngrp_bc_grp_val,
2253 is_alloc_ngrp_bc_grp_val},
2255 {
"hecmwST_elem_grp",
"n_grp", set_egrp_n_grp,
NULL},
2256 {
"hecmwST_elem_grp",
"grp_name", set_egrp_grp_name,
NULL},
2257 {
"hecmwST_elem_grp",
"grp_index", set_egrp_grp_index,
NULL},
2258 {
"hecmwST_elem_grp",
"grp_item", set_egrp_grp_item,
NULL},
2259 {
"hecmwST_elem_grp",
"n_bc", set_egrp_n_bc,
NULL},
2260 {
"hecmwST_elem_grp",
"bc_grp_ID", set_egrp_bc_grp_ID,
2261 is_alloc_egrp_bc_grp_ID},
2262 {
"hecmwST_elem_grp",
"bc_grp_type", set_egrp_bc_grp_type,
2263 is_alloc_egrp_bc_grp_type},
2264 {
"hecmwST_elem_grp",
"bc_grp_index", set_egrp_bc_grp_index,
2265 is_alloc_egrp_bc_grp_index},
2266 {
"hecmwST_elem_grp",
"bc_grp_val", set_egrp_bc_grp_val,
2267 is_alloc_egrp_bc_grp_val},
2269 {
"hecmwST_surf_grp",
"n_grp", set_sgrp_n_grp,
NULL},
2270 {
"hecmwST_surf_grp",
"grp_name", set_sgrp_grp_name,
NULL},
2271 {
"hecmwST_surf_grp",
"grp_index", set_sgrp_grp_index,
NULL},
2272 {
"hecmwST_surf_grp",
"grp_item", set_sgrp_grp_item,
NULL},
2273 {
"hecmwST_surf_grp",
"n_bc", set_sgrp_n_bc,
NULL},
2274 {
"hecmwST_surf_grp",
"bc_grp_ID", set_sgrp_bc_grp_ID,
2275 is_alloc_sgrp_bc_grp_ID},
2276 {
"hecmwST_surf_grp",
"bc_grp_type", set_sgrp_bc_grp_type,
2277 is_alloc_sgrp_bc_grp_type},
2278 {
"hecmwST_surf_grp",
"bc_grp_index", set_sgrp_bc_grp_index,
2279 is_alloc_sgrp_bc_grp_index},
2280 {
"hecmwST_surf_grp",
"bc_grp_val", set_sgrp_bc_grp_val,
2281 is_alloc_sgrp_bc_grp_val},
2283 {
"hecmwST_contact_pair",
"n_pair", set_contact_pair_n_pair,
NULL},
2284 {
"hecmwST_contact_pair",
"name", set_contact_pair_name,
NULL},
2285 {
"hecmwST_contact_pair",
"type", set_contact_pair_type,
NULL},
2286 {
"hecmwST_contact_pair",
"slave_grp_id", set_contact_pair_slave_grp_id,
2288 {
"hecmwST_contact_pair",
"slave_orisgrp_id", set_contact_pair_slave_orisgrp_id,
2290 {
"hecmwST_contact_pair",
"master_grp_id",
2291 set_contact_pair_master_grp_id,
NULL},
2292 {
"hecmwST_refine_origin",
"index", set_refine_origin_index,
NULL},
2293 {
"hecmwST_refine_origin",
"item_index", set_refine_origin_item_index,
2295 {
"hecmwST_refine_origin",
"item_item", set_refine_origin_item_item,
2299 static const int NFUNC =
sizeof(functions) /
sizeof(functions[0]);
2305 for (i = 0; i < NFUNC; i++) {
2306 if (strcmp(functions[i].struct_name, struct_name) == 0 &&
2307 strcmp(functions[i].var_name, var_name) == 0) {
2308 return functions[i].is_allocated_func;
2314 static SetFunc get_set_func(
char *struct_name,
char *var_name) {
2317 for (i = 0; i < NFUNC; i++) {
2318 if (strcmp(functions[i].struct_name, struct_name) == 0 &&
2319 strcmp(functions[i].var_name, var_name) == 0) {
2320 return functions[i].set_func;
2342 int *is_allocated,
int *err,
int len_struct,
2352 "mesh copy(C->Fortran): confirm allocation : 'mesh' has "
2353 "not initialized yet");
2356 if (struct_name ==
NULL) {
2359 "mesh copy(C->Fortran): confirm allocation: 'struct_name' is NULL");
2362 if (var_name ==
NULL) {
2365 "mesh copy(C->Fortran): confirm allocation: 'var_name' is NULL");
2368 if (is_allocated ==
NULL) {
2371 "mesh copy(C->Fortran): confirm allocation: 'is_allocated' is NULL");
2383 func = get_is_allocated_func(sname, vname);
2386 "HECMW_mesh_is_allocated(): IsAllocatedFunc not found");
2400 int *is_allocated,
int *err,
2401 int len_struct,
int len_var) {
2403 len_struct, len_var);
2407 int *is_allocated,
int *err,
2408 int len_struct,
int len_var) {
2410 len_struct, len_var);
2414 int *is_allocated,
int *err,
int len_struct,
2417 len_struct, len_var);
2423 int *err,
int len_struct,
int len_var) {
2432 "mesh copy(C->Fortran): 'mesh' has not initialized yet");
2435 if (struct_name ==
NULL) {
2439 if (var_name ==
NULL) {
2456 func = get_set_func(sname, vname);
2459 "mesh copy(C->Fortran): SetFunc not found");
2471 int *err,
int len_struct,
int len_var) {
2477 int *err,
int len_struct,
int len_var) {
2483 int *err,
int len_struct,
int len_var) {