~vcs-imports/escript-finley/trunk

« back to all changes in this revision

Viewing changes to paso/src/Paso.h

  • Committer: jfenwick
  • Date: 2010-10-11 01:48:14 UTC
  • Revision ID: svn-v4:77569008-7704-0410-b7a0-a92fef0b09fd:trunk:3259
Merging dudley and scons updates from branches

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#define INC_PASO
28
28
 
29
29
#include "Common.h"
30
 
 
31
 
/**************************************************************/
32
 
 
33
 
enum Paso_ErrorCodeType {
34
 
  NO_ERROR,
35
 
  WARNING,
36
 
  DIVERGED,
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
 
  NO_PROGRESS_ERROR
50
 
};
51
 
 
52
 
typedef enum Paso_ErrorCodeType Paso_ErrorCodeType;
 
30
#include "esysUtils/error.h"
53
31
 
54
32
#define PASO_ONE (double)(1.0)
55
33
#define PASO_ZERO (double)(0.0)
56
 
/* interfaces */
57
 
 
58
 
 
59
 
PASO_DLL_API
60
 
double Paso_timer(void);
61
 
 
62
 
PASO_DLL_API
63
 
bool_t Paso_checkPtr(void*);
64
 
 
65
 
PASO_DLL_API
66
 
void Paso_resetError(void);
67
 
 
68
 
PASO_DLL_API
69
 
void Paso_setError(Paso_ErrorCodeType err,__const char* msg);
70
 
 
71
 
PASO_DLL_API
72
 
bool_t Paso_noError(void);
73
 
 
74
 
PASO_DLL_API
75
 
Paso_ErrorCodeType Paso_getErrorType(void);
76
 
 
77
 
PASO_DLL_API
78
 
char* Paso_getErrorMessage(void);
79
 
 
80
 
#ifndef _OPENMP 
81
 
int omp_get_max_threads(void);
82
 
#endif
83
34
 
84
35
#endif /* #ifndef INC_PASO */