/[escript]/branches/domexper/esysUtils/src/error.h
ViewVC logotype

Contents of /branches/domexper/esysUtils/src/error.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3251 - (show annotations)
Thu Oct 7 04:02:30 2010 UTC (8 years, 7 months ago) by jfenwick
File MIME type: text/plain
File size: 1638 byte(s)
Merged sconcript changes - weipa doesn't build unit test binary
1
2 /*******************************************************
3 *
4 * Copyright (c) 2010 by University of Queensland
5 * Earth Systems Science Computational Center (ESSCC)
6 * http://www.uq.edu.au/esscc
7 *
8 * Primary Business: Queensland, Australia
9 * Licensed under the Open Software License version 3.0
10 * http://www.opensource.org/licenses/osl-3.0.php
11 *
12 *******************************************************/
13
14
15 /**************************************************************/
16
17 /* Functions for C error handling (and timing)*/
18
19 /**************************************************************/
20
21
22 #ifndef INC_ESYS_ERROR
23 #define INC_ESYS_ERROR
24
25 #include "system_dep.h"
26 #include "types.h"
27
28 #include <stdio.h> /* For FILENAME_MAX */
29 #define LenString_MAX FILENAME_MAX*2
30 #define LenErrorMsg_MAX LenString_MAX
31
32 /**************************************************************/
33
34 typedef enum {
35 NO_ERROR,
36 WARNING,
37 DIVERGED,
38 VALUE_ERROR,
39 TYPE_ERROR,
40 MEMORY_ERROR,
41 IO_ERROR,
42 ZERO_DIVISION_ERROR,
43 EOF_ERROR,
44 FLOATING_POINT_ERROR,
45 INDEX_ERROR,
46 OS_ERROR,
47 OVERFLOW_ERROR,
48 SYSTEM_ERROR,
49 ESYS_MPI_ERROR,
50 NO_PROGRESS_ERROR
51 } Esys_ErrorCodeType;
52
53 /* interfaces */
54
55
56 ESYSUTILS_DLL_API
57 double Esys_timer(void);
58
59 ESYSUTILS_DLL_API
60 bool_t Esys_checkPtr(void*);
61
62 ESYSUTILS_DLL_API
63 void Esys_resetError(void);
64
65 ESYSUTILS_DLL_API
66 void Esys_setError(Esys_ErrorCodeType err,__const char* msg);
67
68 ESYSUTILS_DLL_API
69 bool_t Esys_noError(void);
70
71 ESYSUTILS_DLL_API
72 Esys_ErrorCodeType Esys_getErrorType(void);
73
74 ESYSUTILS_DLL_API
75 char* Esys_getErrorMessage(void);
76
77 #ifndef _OPENMP
78 int omp_get_max_threads(void);
79 #endif
80
81 #endif /* #ifndef INC_PASO */

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision
svn:mergeinfo /branches/lapack2681/paso/src/Paso.h:2682-2741 /branches/restext/paso/src/Paso.h:2610-2624 /branches/stage3.0/paso/src/Paso.h:2569-2590 /release/3.0/paso/src/Paso.h:2591-2601

  ViewVC Help
Powered by ViewVC 1.1.26