/[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 6078 by caltinay, Wed Mar 2 04:13:26 2016 UTC revision 6079 by caltinay, Mon Mar 21 12:22:38 2016 UTC
# Line 27  Line 27 
27    
28  #include <dudley/DudleyException.h>  #include <dudley/DudleyException.h>
29    
30    #include <escript/Data.h>
31  #include <escript/EsysMPI.h>  #include <escript/EsysMPI.h>
 #include <cstring>  
32    
33  namespace dudley {  namespace dudley {
34    
# Line 41  using escript::DataTypes::dim_t; Line 41  using escript::DataTypes::dim_t;
41  #define DUDLEY_ELEMENTS 4  #define DUDLEY_ELEMENTS 4
42  #define DUDLEY_FACE_ELEMENTS 5  #define DUDLEY_FACE_ELEMENTS 5
43  #define DUDLEY_POINTS 6  #define DUDLEY_POINTS 6
 #define DUDLEY_REDUCED_DEGREES_OF_FREEDOM 2  
 #define DUDLEY_REDUCED_NODES 14  
44  #define DUDLEY_REDUCED_ELEMENTS 10  #define DUDLEY_REDUCED_ELEMENTS 10
45  #define DUDLEY_REDUCED_FACE_ELEMENTS 11  #define DUDLEY_REDUCED_FACE_ELEMENTS 11
46    
47    inline bool hasReducedIntegrationOrder(const escript::Data& in)
48    {
49        const int fs = in.getFunctionSpace().getTypeCode();
50        return (fs == DUDLEY_REDUCED_ELEMENTS || fs == DUDLEY_REDUCED_FACE_ELEMENTS);
51    }
52    
53  /* status stuff */  /* status stuff */
54  typedef int Dudley_Status_t;  typedef int Dudley_Status_t;
55  #define Dudley_increaseStatus(self) ((self)->status)++  #define Dudley_increaseStatus(self) ((self)->status)++

Legend:
Removed from v.6078  
changed lines
  Added in v.6079

  ViewVC Help
Powered by ViewVC 1.1.26