1 |
|
2 |
/* $Id$ */ |
3 |
|
4 |
/******************************************************* |
5 |
* |
6 |
* Copyright 2003-2007 by ACceSS MNRF |
7 |
* Copyright 2007 by University of Queensland |
8 |
* |
9 |
* http://esscc.uq.edu.au |
10 |
* Primary Business: Queensland, Australia |
11 |
* Licensed under the Open Software License version 3.0 |
12 |
* http://www.opensource.org/licenses/osl-3.0.php |
13 |
* |
14 |
*******************************************************/ |
15 |
|
16 |
/**************************************************************/ |
17 |
|
18 |
/* Paso finite element solver */ |
19 |
|
20 |
/**************************************************************/ |
21 |
|
22 |
/* Copyrights by ACcESS Australia, 2003,2004,2005 */ |
23 |
/* Author: gross@access.edu.au */ |
24 |
|
25 |
/**************************************************************/ |
26 |
|
27 |
#ifndef INC_PASO |
28 |
#define INC_PASO |
29 |
|
30 |
#include "Common.h" |
31 |
|
32 |
/**************************************************************/ |
33 |
|
34 |
enum Paso_ErrorCodeType { |
35 |
NO_ERROR, |
36 |
WARNING, |
37 |
VALUE_ERROR, |
38 |
TYPE_ERROR, |
39 |
MEMORY_ERROR, |
40 |
IO_ERROR, |
41 |
ZERO_DIVISION_ERROR, |
42 |
EOF_ERROR, |
43 |
FLOATING_POINT_ERROR, |
44 |
INDEX_ERROR, |
45 |
OS_ERROR, |
46 |
OVERFLOW_ERROR, |
47 |
SYSTEM_ERROR, |
48 |
PASO_MPI_ERROR |
49 |
}; |
50 |
|
51 |
typedef enum Paso_ErrorCodeType Paso_ErrorCodeType; |
52 |
|
53 |
/* interfaces */ |
54 |
|
55 |
double Paso_timer(void); |
56 |
bool_t Paso_checkPtr(void*); |
57 |
void Paso_resetError(void); |
58 |
void Paso_setError(Paso_ErrorCodeType err,char* msg); |
59 |
bool_t Paso_noError(void); |
60 |
Paso_ErrorCodeType Paso_getErrorType(void); |
61 |
char* Paso_getErrorMessage(void); |
62 |
#ifndef _OPENMP |
63 |
int omp_get_max_threads(void); |
64 |
#endif |
65 |
|
66 |
#endif /* #ifndef INC_PASO */ |