/[escript]/trunk/paso/src/Paso.h
ViewVC logotype

Diff of /trunk/paso/src/Paso.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3258 by gross, Mon Aug 30 10:48:00 2010 UTC revision 3259 by jfenwick, Mon Oct 11 01:48:14 2010 UTC
# Line 27  Line 27 
27  #define INC_PASO  #define INC_PASO
28    
29  #include "Common.h"  #include "Common.h"
30    #include "esysUtils/error.h"
 /**************************************************************/  
   
 enum Paso_ErrorCodeType {  
   NO_ERROR,  
   WARNING,  
   DIVERGED,  
   VALUE_ERROR,  
   TYPE_ERROR,  
   MEMORY_ERROR,  
   IO_ERROR,  
   ZERO_DIVISION_ERROR,  
   EOF_ERROR,  
   FLOATING_POINT_ERROR,  
   INDEX_ERROR,  
   OS_ERROR,  
   OVERFLOW_ERROR,  
   SYSTEM_ERROR,  
   PASO_MPI_ERROR,  
   NO_PROGRESS_ERROR  
 };  
   
 typedef enum Paso_ErrorCodeType Paso_ErrorCodeType;  
31    
32  #define PASO_ONE (double)(1.0)  #define PASO_ONE (double)(1.0)
33  #define PASO_ZERO (double)(0.0)  #define PASO_ZERO (double)(0.0)
 /* interfaces */  
   
   
 PASO_DLL_API  
 double Paso_timer(void);  
   
 PASO_DLL_API  
 bool_t Paso_checkPtr(void*);  
   
 PASO_DLL_API  
 void Paso_resetError(void);  
   
 PASO_DLL_API  
 void Paso_setError(Paso_ErrorCodeType err,__const char* msg);  
   
 PASO_DLL_API  
 bool_t Paso_noError(void);  
   
 PASO_DLL_API  
 Paso_ErrorCodeType Paso_getErrorType(void);  
   
 PASO_DLL_API  
 char* Paso_getErrorMessage(void);  
   
 #ifndef _OPENMP  
 int omp_get_max_threads(void);  
 #endif  
34    
35  #endif /* #ifndef INC_PASO */  #endif /* #ifndef INC_PASO */

Legend:
Removed from v.3258  
changed lines
  Added in v.3259

  ViewVC Help
Powered by ViewVC 1.1.26