DACE 2.0 API Manual
Differential Algebra Core Engine
daceerror.h
Go to the documentation of this file.
1 /******************************************************************************
2 * *
3 * DIFFERENTIAL ALGEBRA CORE ENGINE *
4 * *
5 *******************************************************************************
6 * *
7 * Copyright 2016 Politecnico di Milano (2014 Dinamica Srl) *
8 * Licensed under the Apache License, Version 2.0 (the "License"); *
9 * you may not use this file except in compliance with the License. *
10 * You may obtain a copy of the License at *
11 * *
12 * http://www.apache.org/licenses/LICENSE-2.0 *
13 * *
14 * Unless required by applicable law or agreed to in writing, software *
15 * distributed under the License is distributed on an "AS IS" BASIS, *
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
17 * See the License for the specific language governing permissions and *
18 * limitations under the License. *
19 * *
20 *******************************************************************************/
21 
22 /*
23  * daceerror.h
24  *
25  * Created on: November 18, 2016
26  * Author: Politecnico di Milano
27  */
28 
29 #ifndef DINAMICA_DACEERROR_H
30 #define DINAMICA_DACEERROR_H
31 
35 typedef struct {
36  int ID;
37  const char* msg;
38 } errstrings;
39 
40 
42  { 0, "Unknown DACE error. Contact DACE developers for filing a bug report."},
43  {1001, "Dynamic memory allocation failure"},
44  {1002, "Out of memory"},
45  {1003, "DACE has not been initialized"},
46  {1004, "DA object not allocated"},
47  {1005, "Incorrect number of monomials"},
48  {1006, "Incorrect DA coding arrays"},
49  {1007, "Requested length too long"},
50  {1008, "Error in monomial evaluation tree construction"},
51  { 9, ""},
52  { 10, ""},
53  { 911, "Order and/or variable too large"},
54  { 12, ""},
55  { 13, ""},
56  { 14, ""},
57  { 15, ""},
58  { 16, ""},
59  { 17, ""},
60  { 18, ""},
61  { 19, ""},
62  { 20, ""},
63  { 621, "Not enough storage"},
64  { 622, "Order too large"},
65  { 623, "Number of variables too high"},
66  { 624, "Invalid independent variable"},
67  { 625, "Invalid DA codes"},
68  { 626, "Invalid encoded exponent"},
69  { 27, ""},
70  { 28, ""},
71  { 29, ""},
72  { 30, ""},
73  { 631, "Invalid data"},
74  { 632, "Unknown format"},
75  { 633, "DA vector too long"},
76  { 634, "Not enough lines to read"},
77  { 35, ""},
78  { 36, ""},
79  { 37, ""},
80  { 38, ""},
81  { 39, ""},
82  { 40, ""},
83  { 641, "Dividing by zero"},
84  { 642, "Inverse does not exists"},
85  { 643, "Non-integer power of non-positive DA"},
86  { 644, "Zero-th root does not exist"},
87  { 645, "Even root of negative DA"},
88  { 646, "Odd root of zero DA"},
89  { 647, "Negative constant part in logarithm"},
90  { 648, "Base of logarithm must be positive"},
91  { 649, "Cosine is zero in tangent"},
92  { 650, "Out of domain"},
93  { 651, "No estimate is possible"},
94  { 52, ""},
95  { 53, ""},
96  { 54, ""},
97  { 55, ""},
98  { 56, ""},
99  { 57, ""},
100  { 58, ""},
101  { 59, ""},
102  { 60, ""},
103  { 161, "Free or invalid variable"},
104  { 162, "Truncation order too high"},
105  { 163, "Inacurate estimate"},
106  { 164, "Numbering out of order"},
107  { 165, "Too many variables"},
108  { 166, "Duplicate monomial"},
109  { 167, "Order increased to 1"},
110  { 168, "Variable increased to 1"},
111  { 69, ""},
112  { 70, ""}
113 };
114 
115 #endif
int ID
Internal ID of the error.
Definition: daceerror.h:36
#define DACE_API
Definition: dace_s.h:33
Definition: daceerror.h:35
const char * msg
Human readable error message.
Definition: daceerror.h:37
DACE_API const errstrings DACEerr[]
Variable containing all errors strings and codes.
Definition: daceerror.h:41