/[escript]/trunk/finley/src/Finley.h
ViewVC logotype

Diff of /trunk/finley/src/Finley.h

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

revision 4495 by caltinay, Fri Jun 7 07:04:44 2013 UTC revision 4496 by caltinay, Mon Jul 15 06:53:44 2013 UTC
# Line 13  Line 13 
13  *  *
14  *****************************************************************************/  *****************************************************************************/
15    
16    #ifndef __FINLEY_H__
17    #define __FINLEY_H__
18    
19  #ifndef INC_FINLEY  /****************************************************************************
 #define INC_FINLEY  
20    
21  /************************************************************************************/    Finley finite element solver
22    
23  /*    Finley finite element solver */  *****************************************************************************/
   
 /************************************************************************************/  
24    
25  #include "esysUtils/Esys_MPI.h"  #include "esysUtils/Esys_MPI.h"
26  #include "esysUtils/error.h"  #include "esysUtils/error.h"
27    
28  /************************************************************************************/  namespace finley {
29  /*#define Finley_TRACE */  
30    //#define Finley_TRACE
31  #define FINLEY_UNKNOWN -1  #define FINLEY_UNKNOWN -1
32  #define FINLEY_DEGREES_OF_FREEDOM 1  #define FINLEY_DEGREES_OF_FREEDOM 1
33  #define FINLEY_NODES 3  #define FINLEY_NODES 3
# Line 43  Line 43 
43  #define FINLEY_REDUCED_CONTACT_ELEMENTS_1 12  #define FINLEY_REDUCED_CONTACT_ELEMENTS_1 12
44  #define FINLEY_REDUCED_CONTACT_ELEMENTS_2 13  #define FINLEY_REDUCED_CONTACT_ELEMENTS_2 13
45    
 /* status stuff */  
 typedef int Finley_Status_t;  
 #define Finley_increaseStatus(self) ((self)->status)++  
46  #define FINLEY_INITIAL_STATUS 0  #define FINLEY_INITIAL_STATUS 0
47    
48  /* error codes */  typedef Esys_ErrorCodeType ErrorCodeType;
   
   
 typedef Esys_ErrorCodeType Finley_ErrorCodeType;  
49    
50  /* interfaces */  double timer();
51    void resetError();
52    void setError(ErrorCodeType err, const char* msg);
53    bool noError();
54    ErrorCodeType getErrorType();
55    char* getErrorMessage();
56    void checkFinleyError();
57    bool MPI_noError(Esys_MPIInfo *mpi_info);
58    
59  double Finley_timer(void);  } // namespace finley
 bool_t Finley_checkPtr(void*);  
 void Finley_resetError(void);  
 void Finley_setError(Finley_ErrorCodeType err,__const char* msg);  
 bool_t Finley_noError(void);  
 Finley_ErrorCodeType Finley_getErrorType(void);  
 char* Finley_getErrorMessage(void);  
 void Finley_convertPasoError(void);  
 bool_t Finley_MPI_noError( Esys_MPIInfo *mpi_info );  
60    
61  #endif /* #ifndef INC_FINLEY */  #endif // __FINLEY_H__
62    

Legend:
Removed from v.4495  
changed lines
  Added in v.4496

  ViewVC Help
Powered by ViewVC 1.1.26