This repository has been archived by the owner on Mar 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexo_utils.h
72 lines (56 loc) · 2.27 KB
/
exo_utils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/************************************************************************ *
* Goma - Multiphysics finite element software *
* Sandia National Laboratories *
* *
* Copyright (c) 2014 Sandia Corporation. *
* *
* Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, *
* the U.S. Government retains certain rights in this software. *
* *
* This software is distributed under the GNU General Public License. *
\************************************************************************/
/* exo_utils.h - prototype declarations for exo_utils.c
*/
#ifndef _EXO_UTILS_H
#define _EXO_UTILS_H
#ifdef EXTERN
#undef EXTERN
#endif
#ifdef _EXO_UTILS_C
#define EXTERN /* do nothing */
#endif
#ifndef _EXO_UTILS_C
#define EXTERN extern
#endif
EXTERN void zero_base
PROTO((Exo_DB *)); /* E - ptr to EXODUS II FE db */
EXTERN void one_base
PROTO((Exo_DB *)); /* E - ptr to EXODUS II FE db */
EXTERN Element_shape get_element_shape
PROTO((const Exo_DB *, /* exo */
const int )); /* element */
#if 0
EXTERN Element_shape type2shape
PROTO((const Element_type ));
#endif
EXTERN int shape2sides
PROTO((const Element_shape ));
EXTERN int find_element_block
PROTO(( Exo_DB *, // Exodus database
int )); // Element number
EXTERN int find_element_friends // Outputs number of friends found
PROTO(( Exo_DB *, // Exodus database
int, // Element of which I want to find friends
int * )); // (out) List of elements who are friends
EXTERN int find_local_node_number
PROTO(( Exo_DB *, // Exodus database
int, // Element to inspect
int )); // Global node number
EXTERN void find_edge_connected_nodes
PROTO(( int, // Local node number
int * )); // Three edge-connected nodes
EXTERN int is_node_in_element
PROTO(( Exo_DB *, // Exodus database
int, // Node number
int )); // Element number
#endif /* _EXO_UTILS_H */