00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef INC_PASO
00027 #define INC_PASO
00028
00029 #include "Common.h"
00030
00031
00032
00033 enum Paso_ErrorCodeType {
00034 NO_ERROR,
00035 WARNING,
00036 DIVERGED,
00037 VALUE_ERROR,
00038 TYPE_ERROR,
00039 MEMORY_ERROR,
00040 IO_ERROR,
00041 ZERO_DIVISION_ERROR,
00042 EOF_ERROR,
00043 FLOATING_POINT_ERROR,
00044 INDEX_ERROR,
00045 OS_ERROR,
00046 OVERFLOW_ERROR,
00047 SYSTEM_ERROR,
00048 PASO_MPI_ERROR
00049 };
00050
00051 typedef enum Paso_ErrorCodeType Paso_ErrorCodeType;
00052
00053
00054
00055
00056 PASO_DLL_API
00057 double Paso_timer(void);
00058
00059 PASO_DLL_API
00060 bool_t Paso_checkPtr(void*);
00061
00062 PASO_DLL_API
00063 void Paso_resetError(void);
00064
00065 PASO_DLL_API
00066 void Paso_setError(Paso_ErrorCodeType err,__const char* msg);
00067
00068 PASO_DLL_API
00069 bool_t Paso_noError(void);
00070
00071 PASO_DLL_API
00072 Paso_ErrorCodeType Paso_getErrorType(void);
00073
00074 PASO_DLL_API
00075 char* Paso_getErrorMessage(void);
00076
00077 #ifndef _OPENMP
00078 int omp_get_max_threads(void);
00079 #endif
00080
00081 #endif