/[escript]/branches/trilinos_from_5897/dudley/src/Dudley.h
ViewVC logotype

Diff of /branches/trilinos_from_5897/dudley/src/Dudley.h

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

revision 6008 by caltinay, Mon Feb 22 06:59:27 2016 UTC revision 6009 by caltinay, Wed Mar 2 04:13:26 2016 UTC
# Line 14  Line 14 
14  *  *
15  *****************************************************************************/  *****************************************************************************/
16    
17  #ifndef INC_DUDLEY  #ifndef __DUDLEY_H__
18  #define INC_DUDLEY  #define __DUDLEY_H__
19    
20  /************************************************************************************/  /****************************************************************************/
21    
22  /*    Dudley finite element solver */  /*    Dudley finite element solver */
23    
24  /************************************************************************************/  /****************************************************************************/
   
 #include "esysUtils/Esys_MPI.h"  
 #include "esysUtils/error.h"  
25    
26  #include <escript/DataTypes.h>  #include <escript/DataTypes.h>
27    
28    #include <dudley/DudleyException.h>
29    
30    #include <escript/EsysMPI.h>
31  #include <cstring>  #include <cstring>
32    
33  //FIXME: this is evil! Fix by putting all of dudley into its own namespace!  namespace dudley {
34    
35  using escript::DataTypes::index_t;  using escript::DataTypes::index_t;
36  using escript::DataTypes::dim_t;  using escript::DataTypes::dim_t;
37    
 /************************************************************************************/  
 /*#define Dudley_TRACE */  
38  #define DUDLEY_UNKNOWN -1  #define DUDLEY_UNKNOWN -1
39  #define DUDLEY_DEGREES_OF_FREEDOM 1  #define DUDLEY_DEGREES_OF_FREEDOM 1
40  #define DUDLEY_NODES 3  #define DUDLEY_NODES 3
# Line 51  typedef int Dudley_Status_t; Line 51  typedef int Dudley_Status_t;
51  #define Dudley_increaseStatus(self) ((self)->status)++  #define Dudley_increaseStatus(self) ((self)->status)++
52  #define DUDLEY_INITIAL_STATUS 0  #define DUDLEY_INITIAL_STATUS 0
53    
54  /* error codes */  } // namespace dudley
   
 typedef Esys_ErrorCodeType Dudley_ErrorCodeType;  
   
 /* interfaces */  
55    
56  double Dudley_timer(void);  #endif // __DUDLEY_H__
 bool Dudley_checkPtr(void *);  
 void Dudley_resetError(void);  
 void Dudley_setError(Dudley_ErrorCodeType err, __const char *msg);  
 bool Dudley_noError(void);  
 Dudley_ErrorCodeType Dudley_getErrorType(void);  
 char *Dudley_getErrorMessage(void);  
 void Dudley_convertPasoError(void);  
 bool Dudley_MPI_noError(esysUtils::JMPI& mpi_info);  
 // void Dudley_setTagsInUse(const index_t Tag, const dim_t numTags, dim_t * numTagsInUse, index_t ** tagsInUse,  
 //           esysUtils::JMPI& mpiinfo);  
57    
 #endif              /* #ifndef INC_DUDLEY */  

Legend:
Removed from v.6008  
changed lines
  Added in v.6009

  ViewVC Help
Powered by ViewVC 1.1.26