1 |
/* $Id$ */ |
2 |
|
3 |
/**************************************************************/ |
4 |
|
5 |
/* Paso finite element solver */ |
6 |
|
7 |
/**************************************************************/ |
8 |
|
9 |
/* Copyrights by ACcESS Australia, 2003,2004,2005 */ |
10 |
/* Author: gross@access.edu.au */ |
11 |
|
12 |
/**************************************************************/ |
13 |
|
14 |
#ifndef INC_PASO |
15 |
#define INC_PASO |
16 |
|
17 |
#ifdef MSVC |
18 |
#ifdef PASO_EXPORTS |
19 |
#define PASO_DLL __declspec(dllexport) |
20 |
#else |
21 |
#define PASO_DLL __declspec(dllimport) |
22 |
#endif |
23 |
#else |
24 |
#define PASO_DLL |
25 |
#endif |
26 |
|
27 |
#include "Common.h" |
28 |
#include "Options.h" |
29 |
#include "SystemMatrix.h" |
30 |
|
31 |
#ifdef __cplusplus |
32 |
extern "C" { |
33 |
#endif |
34 |
|
35 |
/**************************************************************/ |
36 |
|
37 |
enum Paso_ErrorCodeType { |
38 |
NO_ERROR, |
39 |
WARNING, |
40 |
VALUE_ERROR, |
41 |
TYPE_ERROR, |
42 |
MEMORY_ERROR, |
43 |
IO_ERROR, |
44 |
ZERO_DIVISION_ERROR, |
45 |
EOF_ERROR, |
46 |
FLOATING_POINT_ERROR, |
47 |
INDEX_ERROR, |
48 |
OS_ERROR, |
49 |
OVERFLOW_ERROR, |
50 |
SYSTEM_ERROR |
51 |
}; |
52 |
|
53 |
typedef enum Paso_ErrorCodeType Paso_ErrorCodeType; |
54 |
|
55 |
/* interfaces */ |
56 |
|
57 |
PASO_DLL double Paso_timer(void); |
58 |
PASO_DLL bool_t Paso_checkPtr(void*); |
59 |
PASO_DLL void Paso_resetError(void); |
60 |
PASO_DLL void Paso_setError(Paso_ErrorCodeType err,char* msg); |
61 |
PASO_DLL bool_t Paso_noError(void); |
62 |
PASO_DLL Paso_ErrorCodeType Paso_getErrorType(void); |
63 |
PASO_DLL char* Paso_getErrorMessage(void); |
64 |
PASO_DLL void Paso_solve(Paso_SystemMatrix* A, |
65 |
double* out, |
66 |
double* in, |
67 |
Paso_Options* options); |
68 |
|
69 |
PASO_DLL void Paso_solve_free(Paso_SystemMatrix* in); |
70 |
|
71 |
#ifdef __cplusplus |
72 |
} |
73 |
#endif /* __cplusplus */ |
74 |
|
75 |
|
76 |
#endif /* #ifndef INC_PASO */ |
77 |
|
78 |
/* |
79 |
* $Log$ |
80 |
* Revision 1.2 2005/09/15 03:44:38 jgs |
81 |
* Merge of development branch dev-02 back to main trunk on 2005-09-15 |
82 |
* |
83 |
* Revision 1.1.2.2 2005/09/07 00:59:08 gross |
84 |
* some inconsistent renaming fixed to make the linking work. |
85 |
* |
86 |
* Revision 1.1.2.1 2005/09/05 06:29:47 gross |
87 |
* These files have been extracted from finley to define a stand alone libray for iterative |
88 |
* linear solvers on the ALTIX. main entry through Paso_solve. this version compiles but |
89 |
* has not been tested yet. |
90 |
* |
91 |
* |
92 |
*/ |