Debian Codegraph @

packages/seacas/libraries/chaco/main/structs.h

raw
1 /*
2 * Copyright(C) 1999-2020, 2022, 2023 National Technology & Engineering Solutions
3 * of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
4 * NTESS, the U.S. Government retains certain rights in this software.
5 *
6 * See packages/seacas/LICENSE for details
7 */
8 #pragma once
9 /**< An array of these stores all the data for the graph/matrix. */
10 struct vtx_data
11 {
12 int vwgt; /**< weight of vertex */
13 int nedges; /**< number of neighbors of vertex in subgraph */
14 /**< Note: above always includes self-edge first */
15 int *edges; /**< neighbor list in subgraph numbering scheme */
16 float *ewgts; /**< weights of all the edges */
17 /**< Note: above 2 fields have self-edge first */
18 };
19
20 /**< An Array of lists made of these stores scheduler's message table. */
21 struct msg_data
22 {
23 int dest; /**< destination of the message */
24 double dur; /**< duration of message */
25 double beg; /**< time at which message begins */
26 double end; /**< time at which message end */
27 struct list *route; /**< linked list of ints stores message route */
28 struct msg_data *pntr; /**< pointer to next outgoing message from this set */
29 };
30
31 /**< A linked list of these stores the selective orthogonalization set */
32 struct orthlink
33 {
34 int depth; /**< bottom of list is 0, previous is 1 etc */
35 int index; /**< position in list of ritz vals (i index) */
36 double ritzval; /**< good ritz value */
37 double betaji; /**< residual bound on good ritz pair */
38 double tau; /**< from orthogonality recursion */
39 double prevtau; /**< from orthogonality recursion */
40 double *vec; /**< vector to orthogonalize against */
41 struct orthlink *pntr; /**< pointer to next link */
42 };
43
44 /**< A linked list of these stores the selective orthogonalization set */
45 struct orthlink_float
46 {
47 int depth; /**< bottom of list is 0, previous is 1 etc */
48 int index; /**< position in list of ritz vals (i index) */
49 double ritzval; /**< good ritz value */
50 double betaji; /**< residual bound on good ritz pair */
51 double tau; /**< from orthogonality recursion */
52 double prevtau; /**< from orthogonality recursion */
53 float *vec; /**< vector to orthogonalize against */
54 struct orthlink_float *pntr; /**< pointer to next link */
55 };
56
57 /**< Array data structure for heap information */
58 struct heap
59 {
60 double val; /**< value being kept in a heap */
61 int tag; /**< info associated with value */
62 };
63
64 /**< A linked list of these stores the minimum elements of a vector */
65 struct scanlink
66 {
67 double val; /**< value of vector entry */
68 int indx; /**< index of corresponding entry */
69 struct scanlink *pntr; /**< pointer to next link */
70 };
71
72 /**< These store the phantom edges needed to keep a subgraph connected */
73 struct edgeslist
74 {
75 int vtx1; /**< first vertex in edge */
76 int vtx2; /**< second vertex in edge */
77 struct edgeslist *next; /**< pointer to next element in list */
78 };
79
80 /**< These store all the data needed to modify edges for connectivity. */
81 struct connect_data
82 {
83 struct ilists *old_edges; /**< overwritten old edges */
84 struct flists *old_ewgts; /**< overwritten old weights */
85 struct edgeslist *new_edges; /**< list of new edges */
86 int old_nedges; /**< original number of edges in graph */
87 };
88
89 /**< Information about subsets of processors is needed in recurse. */
90 struct set_info
91 {
92 int setnum; /**< assignment value for this set */
93 int ndims; /**< log of # processors if hypercube */
94 int low[3]; /**< low limit for grid dimensions if mesh */
95 int span[3]; /**< size of grid dimensions if mesh */
96 struct set_info *next; /**< pointer to next element in linked list */
97 };
98
99 /**< Linked list stuff for various uses */
100 struct list
101 { /**< linked list of integers */
102 int num; /**< element number */
103 struct list *next; /**< ptr to next element in list */
104 };
105
106 struct lists
107 { /**< linked list of lists */
108 struct list *begin; /**< pointer to list */
109 struct lists *nextlist; /**< next list header */
110 };
111
112 struct bilist
113 { /**< bidirectional list */
114 struct bilist *prev; /**< pointer to previous element */
115 struct bilist *next; /**< ptr to next element in list */
116 };
117
118 struct ipairs
119 { /**< stores pairs of integers */
120 int val1;
121 int val2;
122 };
123
124 struct ilists
125 { /**< linked list of integer lists */
126 int *list;
127 struct ilists *next;
128 };
129
130 struct flists
131 { /**< linked list of floating lists */
132 float *list;
133 struct flists *next;
134 };
135
136 #include "prototypes.h"