-
Notifications
You must be signed in to change notification settings - Fork 36
/
jigsaw_const.h
109 lines (91 loc) · 3.67 KB
/
jigsaw_const.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/*
--------------------------------------------------------
* Constants for the JIGSAW meshing library.
--------------------------------------------------------
*
* This program may be freely redistributed under the
* condition that the copyright notices (including this
* entire header) are not removed, and no compensation
* is received through use of the software. Private,
* research, and institutional use is free. You may
* distribute modified versions of this code UNDER THE
* CONDITION THAT THIS CODE AND ANY MODIFICATIONS MADE
* TO IT IN THE SAME FILE REMAIN UNDER COPYRIGHT OF THE
* ORIGINAL AUTHOR, BOTH SOURCE AND OBJECT CODE ARE
* MADE FREELY AVAILABLE WITHOUT CHARGE, AND CLEAR
* NOTICE IS GIVEN OF THE MODIFICATIONS. Distribution
* of this code as part of a commercial system is
* permissible ONLY BY DIRECT ARRANGEMENT WITH THE
* AUTHOR. (If you are not directly supplying this
* code to a customer, and you are instead telling them
* how they can obtain it for free, then you are not
* required to make any arrangement with me.)
*
* Disclaimer: Neither I nor THE CONTRIBUTORS warrant
* this code in any way whatsoever. This code is
* provided "as-is" to be used at your own risk.
*
* THE CONTRIBUTORS include:
* (a) The University of Sydney
* (b) The Massachusetts Institute of Technology
* (c) Columbia University
* (d) The National Aeronautics & Space Administration
* (e) Los Alamos National Laboratory
*
--------------------------------------------------------
*
* Last updated: 29 May, 2022
*
* Copyright 2013-2022
* Darren Engwirda
* d.engwirda@gmail.com
* https://github.com/dengwirda
*
--------------------------------------------------------
*/
/*
--------------------------------------------------------
* return codes for JIGSAW.
--------------------------------------------------------
*/
# define JIGSAW_UNKNOWN_ERROR -1
# define JIGSAW_NO_ERROR +0
# define JIGSAW_FILE_NOT_LOCATED +2
# define JIGSAW_FILE_NOT_CREATED +3
# define JIGSAW_NETCDF_NOT_FOUND +9
# define JIGSAW_INVALID_ARGUMENT +4
# define JIGSAW_INVALID_INDEXING +5
# define JIGSAW_INVALID_USEROPTS +6
# define JIGSAW_INVALID_ARRAYDIM +7
/*
--------------------------------------------------------
* constants for JIGSAW.
--------------------------------------------------------
*/
# define JIGSAW_NULL_FLAG -100
# define JIGSAW_EUCLIDEAN_MESH +100
# define JIGSAW_EUCLIDEAN_GRID +101
# define JIGSAW_EUCLIDEAN_DUAL +102
# define JIGSAW_ELLIPSOID_MESH +200
# define JIGSAW_ELLIPSOID_GRID +201
# define JIGSAW_ELLIPSOID_DUAL +202
# define JIGSAW_POINT_TAG +10
# define JIGSAW_EDGE2_TAG +20
# define JIGSAW_TRIA3_TAG +30
# define JIGSAW_QUAD4_TAG +40
# define JIGSAW_TRIA4_TAG +50
# define JIGSAW_HEXA8_TAG +60
# define JIGSAW_WEDG6_TAG +70
# define JIGSAW_PYRA5_TAG +80
# define JIGSAW_HFUN_RELATIVE +300
# define JIGSAW_HFUN_ABSOLUTE +301
# define JIGSAW_KERN_DELFRONT +400
# define JIGSAW_KERN_DELAUNAY +401
# define JIGSAW_KERN_BISECTOR +402
# define JIGSAW_BNDS_TRIACELL +402
# define JIGSAW_BNDS_DUALCELL +403
# define JIGSAW_KERN_ODT_DQDX +404
# define JIGSAW_KERN_CVT_DQDX +405
# define JIGSAW_KERN_H95_DQDX +406
# define JIGSAW_KERN_AREA_LEN +410
# define JIGSAW_KERN_SKEW_COS +411