Debian Codegraph @

packages/pamgen/mesh_spec_lt/pamgen_im_ne_nemesisI.h

raw
1 // @HEADER
2 // *****************************************************************************
3 // Pamgen Package
4 //
5 // Copyright 2004 NTESS and the Pamgen contributors.
6 // SPDX-License-Identifier: LGPL-2.1-or-later
7 // *****************************************************************************
8 // @HEADER
9
10 /****************************************************************************
11 * This file contains prototypes for the functions found in the NEMESIS
12 * library.
13 ****************************************************************************/
14
15 #ifndef _IM_NE_NEMESIS_H
16 #define _IM_NE_NEMESIS_H
17
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21
22 /*=============================================================================
23 * Initial Information Routines
24 *===========================================================================*/
25 extern int
26 im_ne_get_init_info(int neid, /* NemesisI file ID */
27 int *num_proc, /* Number of processors */
28 int *num_proc_in_f, /* Number of procs in this file */
29 char *ftype
30 );
31
32 extern int
33 im_ne_get_init_global(int neid, /* NemesisI file ID */
34 int *num_nodes_g, /* Number of global FEM nodes */
35 int *num_elems_g, /* Number of global FEM elements */
36 int *num_elem_blks_g, /* Number of global elem blocks */
37 int *num_node_sets_g, /* Number of global node sets */
38 int *num_side_sets_g /* Number of global side sets */
39 );
40
41 /*=============================================================================
42 * Loadbalance Parameter Routines
43 *===========================================================================*/
44 extern int
45 im_ne_get_loadbal_param(int neid, /* NetCDF/Exodus file ID */
46 int *num_int_nodes, /* Number of internal FEM nodes */
47 int *num_bor_nodes, /* Number of border FEM nodes */
48 int *num_ext_nodes, /* Number of external FEM nodes */
49 int *num_int_elems, /* Number of internal FEM elems */
50 int *num_bor_elems, /* Number of border FEM elems */
51 int *num_node_cmaps, /* Number of nodal comm maps */
52 int *num_elem_cmaps, /* Number of elemental comm maps */
53 int processor /* Processor ID */
54 );
55
56
57 /*=============================================================================
58 * NS, SS & EB Global Parameter Routines
59 *===========================================================================*/
60 extern int
61 im_ne_get_ns_param_global(int neid, /* NetCDF/Exodus file ID */
62 int *ns_ids_glob, /* Global IDs of node sets */
63 int *ns_n_cnt_glob, /* Count of nodes in node sets */
64 int *ns_df_cnt_glob /* Count of dist. factors in ns */
65 );
66
67 extern int
68 im_ne_get_ss_param_global(int neid, /* NetCDF/Exodus file ID */
69 int *ss_ids_glob, /* Global side-set IDs */
70 int *ss_s_cnt_glob, /* Global side count */
71 int *ss_df_cnt_glob /* Global dist. factor count */
72 );
73
74 extern int
75 im_ne_get_eb_info_global(int neid, /* NemesisI file ID */
76 int *el_blk_ids, /* Vector of global element IDs */
77 int *el_blk_cnts /* Vector of global element counts */
78 );
79
80
81 /*=============================================================================
82 * Number Map Routines
83 *===========================================================================*/
84
85 extern int
86 im_ne_get_node_map(int neid, /* NetCDF/Exodus file ID */
87 int *node_mapi, /* Internal FEM node IDs */
88 int *node_mapb, /* Border FEM node IDs */
89 int *node_mape, /* External FEM node IDs */
90 int processor /* Processor IDs */
91 );
92
93 extern int
94 im_ne_get_elem_map(int neid, /* NetCDF/Exodus file ID */
95 int *elem_mapi, /* Internal element IDs */
96 int *elem_mapb, /* Border element IDs */
97 int processor /* Processor ID */
98 );
99
100
101 /*=============================================================================
102 * Communications Maps Routines
103 *===========================================================================*/
104
105 extern int
106 im_ne_get_cmap_params(int neid, /* NetCDF/Exodus file ID */
107 int *node_cmap_ids, /* Nodal comm. map IDs */
108 int *node_cmap_node_cnts, /* Number of nodes in each map */
109 int *elem_cmap_ids, /* Elemental comm. map IDs */
110 int *elem_cmap_elem_cnts, /* Number of elems in each map */
111 int processor /* This processor ID */
112 );
113
114
115 extern int
116 im_ne_get_node_cmap(int neid, /* NetCDF/Exodus file ID */
117 int map_id, /* Map ID */
118 int *node_ids, /* FEM node IDs */
119 int *proc_ids, /* Processor IDs */
120 int processor /* This processor ID */
121 );
122
123 extern int
124 im_ne_get_elem_cmap(int neid, /* NetCDF/Exodus file ID */
125 int map_id, /* Elemental comm map ID */
126 int *elem_ids, /* Element IDs */
127 int *side_ids, /* Element side IDs */
128 int *proc_ids, /* Processor IDs */
129 int processor /* This processor ID */
130 );
131
132
133
134 #ifdef __cplusplus
135 }
136 #endif
137
138 #endif /* _IM_NE_NEMESIS_H */