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

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

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

revision 4427 by caltinay, Fri May 24 04:42:29 2013 UTC revision 4428 by caltinay, Thu May 30 06:39:10 2013 UTC
# Line 32  Line 32 
32  #include "paso/SystemMatrix.h"  #include "paso/SystemMatrix.h"
33    
34  struct Finley_Assemble_Parameters {  struct Finley_Assemble_Parameters {
35      dim_t numQuadTotal; // total number of quadrature nodes = numQuadSub * numQuadSub      /// total number of quadrature nodes = numQuadSub * numQuadSub
36      dim_t numQuadSub;   // number of quadrature nodes per subelements      int numQuadTotal;
37      dim_t numSides;     // number of sides      /// number of quadrature nodes per subelements
38      dim_t numSub;       // number of sub-elements      int numQuadSub;
39      dim_t numDim;       // spatial dimension      /// number of sides
40      dim_t NN;           // leading dimension of element node table      int numSides;
41      dim_t numElements;  // number of elements      /// number of sub-elements
42        int numSub;
43      dim_t numEqu;      /// spatial dimension
44      index_t* row_DOF;      int numDim;
45      dim_t row_DOF_UpperBound;      /// leading dimension of element node table
46        int NN;
47        /// number of elements
48        int numElements;
49    
50        int numEqu;
51        int* row_DOF;
52        int row_DOF_UpperBound;
53      Finley_ElementFile_Jacobians* row_jac;      Finley_ElementFile_Jacobians* row_jac;
54      index_t* row_node;      int* row_node;
55      dim_t row_numShapesTotal;      int row_numShapesTotal;
56      dim_t row_numShapes;      int row_numShapes;
57    
58      dim_t numComp;      int numComp;
59      index_t * col_DOF;      int* col_DOF;
60      dim_t col_DOF_UpperBound;      int col_DOF_UpperBound;
61      Finley_ElementFile_Jacobians* col_jac;      Finley_ElementFile_Jacobians* col_jac;
62      index_t* col_node;      int* col_node;
63      dim_t col_numShapesTotal;      int col_numShapesTotal;
64      dim_t col_numShapes;      int col_numShapes;
65  };  };
66    
67  typedef struct Finley_Assemble_Parameters Finley_Assemble_Parameters;  typedef struct Finley_Assemble_Parameters Finley_Assemble_Parameters;
# Line 62  typedef struct Finley_Assemble_Parameter Line 69  typedef struct Finley_Assemble_Parameter
69    
70  #define Finley_Assemble_reducedIntegrationOrder(__in__) ( (getFunctionSpaceType(__in__) == FINLEY_REDUCED_ELEMENTS) || (getFunctionSpaceType(__in__) == FINLEY_REDUCED_FACE_ELEMENTS) || (getFunctionSpaceType(__in__) == FINLEY_REDUCED_CONTACT_ELEMENTS_1) || (getFunctionSpaceType(__in__) == FINLEY_REDUCED_CONTACT_ELEMENTS_2) )  #define Finley_Assemble_reducedIntegrationOrder(__in__) ( (getFunctionSpaceType(__in__) == FINLEY_REDUCED_ELEMENTS) || (getFunctionSpaceType(__in__) == FINLEY_REDUCED_FACE_ELEMENTS) || (getFunctionSpaceType(__in__) == FINLEY_REDUCED_CONTACT_ELEMENTS_1) || (getFunctionSpaceType(__in__) == FINLEY_REDUCED_CONTACT_ELEMENTS_2) )
71    
72  void Finley_Assemble_PDE(Finley_NodeFile*, Finley_ElementFile*,  void Finley_Assemble_PDE(finley::NodeFile*, Finley_ElementFile*,
73          Paso_SystemMatrix*, escriptDataC*, escriptDataC*, escriptDataC*,          Paso_SystemMatrix*, escriptDataC*, escriptDataC*, escriptDataC*,
74          escriptDataC*, escriptDataC*, escriptDataC*, escriptDataC*);          escriptDataC*, escriptDataC*, escriptDataC*, escriptDataC*);
75    
76  void Finley_Assemble_getAssembleParameters(Finley_NodeFile*,  void Finley_Assemble_getAssembleParameters(finley::NodeFile*,
77          Finley_ElementFile*, Paso_SystemMatrix*, escriptDataC*, bool_t,          Finley_ElementFile*, Paso_SystemMatrix*, escriptDataC*, bool_t,
78          Finley_Assemble_Parameters*);          Finley_Assemble_Parameters*);
79    
# Line 112  void Finley_Assemble_PDE_Points(Finley_A Line 119  void Finley_Assemble_PDE_Points(Finley_A
119          Finley_ElementFile*, Paso_SystemMatrix*, escriptDataC*,          Finley_ElementFile*, Paso_SystemMatrix*, escriptDataC*,
120          escriptDataC*, escriptDataC*);          escriptDataC*, escriptDataC*);
121    
122  void Finley_Assemble_NodeCoordinates(Finley_NodeFile*, escriptDataC*);  void Finley_Assemble_NodeCoordinates(finley::NodeFile*, escriptDataC*);
123    
124  void Finley_Assemble_setNormal(Finley_NodeFile*, Finley_ElementFile*, escriptDataC*);  void Finley_Assemble_setNormal(finley::NodeFile*, Finley_ElementFile*, escriptDataC*);
125  void Finley_Assemble_interpolate(Finley_NodeFile*, Finley_ElementFile*, escriptDataC*, escriptDataC*);  void Finley_Assemble_interpolate(finley::NodeFile*, Finley_ElementFile*, escriptDataC*, escriptDataC*);
126  void Finley_Assemble_gradient(Finley_NodeFile*, Finley_ElementFile*, escriptDataC*, escriptDataC*);  void Finley_Assemble_gradient(finley::NodeFile*, Finley_ElementFile*, escriptDataC*, escriptDataC*);
127  void Finley_Assemble_integrate(Finley_NodeFile*, Finley_ElementFile*, escriptDataC*, double*);  void Finley_Assemble_integrate(finley::NodeFile*, Finley_ElementFile*, escriptDataC*, double*);
128  void Finley_Assemble_getSize(Finley_NodeFile*, Finley_ElementFile*, escriptDataC*);  void Finley_Assemble_getSize(finley::NodeFile*, Finley_ElementFile*, escriptDataC*);
129  void Finley_Assemble_CopyNodalData(Finley_NodeFile*, escriptDataC*, escriptDataC*);  void Finley_Assemble_CopyNodalData(finley::NodeFile*, escriptDataC*, escriptDataC*);
130  void Finley_Assemble_CopyElementData(Finley_ElementFile*, escriptDataC*, escriptDataC*);  void Finley_Assemble_CopyElementData(Finley_ElementFile*, escriptDataC*, escriptDataC*);
131  void Finley_Assemble_AverageElementData(Finley_ElementFile*, escriptDataC*, escriptDataC*);  void Finley_Assemble_AverageElementData(Finley_ElementFile*, escriptDataC*, escriptDataC*);
132    
133  void Finley_Assemble_addToSystemMatrix(Paso_SystemMatrix*, const dim_t NN_Equa,  void Finley_Assemble_addToSystemMatrix(Paso_SystemMatrix*, const int NN_Equa,
134          const index_t* Nodes_Equa, const dim_t num_Equa, const dim_t NN_Sol,          const int* Nodes_Equa, const int num_Equa, const int NN_Sol,
135          const index_t* Nodes_Sol, const dim_t num_Sol, const double* array);          const int* Nodes_Sol, const int num_Sol, const double* array);
136    
137  void Finley_Assemble_LumpedSystem(Finley_NodeFile*, Finley_ElementFile*,  void Finley_Assemble_LumpedSystem(finley::NodeFile*, Finley_ElementFile*,
138          escriptDataC* lumpedMat, escriptDataC* D, const bool_t useHRZ);          escriptDataC* lumpedMat, escriptDataC* D, const bool_t useHRZ);
139    
140  void Finley_Assemble_jacobians_1D(double*, dim_t, double*, dim_t, dim_t, dim_t,  void Finley_Assemble_jacobians_1D(double*, int, double*, int, int, int,
141          index_t*, double*, dim_t, double*, double*, double*, index_t*);          int*, double*, int, double*, double*, double*, int*);
142  void Finley_Assemble_jacobians_2D(double*, dim_t, double*, dim_t, dim_t, dim_t,  void Finley_Assemble_jacobians_2D(double*, int, double*, int, int, int,
143          index_t*, double*, dim_t, double*, double*, double*, index_t*);          int*, double*, int, double*, double*, double*, int*);
144  void Finley_Assemble_jacobians_2D_M1D_E2D(double*, dim_t, double*, dim_t, dim_t,  void Finley_Assemble_jacobians_2D_M1D_E2D(double*, int, double*, int, int,
145          dim_t, index_t*, double*, dim_t, double*, double*, double*, index_t*);          int, int*, double*, int, double*, double*, double*, int*);
146  void Finley_Assemble_jacobians_2D_M1D_E2D_C(double*, dim_t, double*, dim_t,  void Finley_Assemble_jacobians_2D_M1D_E2D_C(double*, int, double*, int,
147          dim_t, dim_t, index_t*, double*, dim_t, double*, double*, double*,          int, int, int*, double*, int, double*, double*, double*,
148          index_t*);          int*);
149  void Finley_Assemble_jacobians_2D_M1D_E1D(double*, dim_t, double*, dim_t, dim_t,  void Finley_Assemble_jacobians_2D_M1D_E1D(double*, int, double*, int, int,
150          dim_t, index_t*, double*, dim_t, double*, double*, double*, index_t*);          int, int*, double*, int, double*, double*, double*, int*);
151  void Finley_Assemble_jacobians_2D_M1D_E1D_C(double*, dim_t, double*, dim_t,  void Finley_Assemble_jacobians_2D_M1D_E1D_C(double*, int, double*, int,
152          dim_t, dim_t, index_t*, double*, dim_t, double*, double*, double*, index_t*);          int, int, int*, double*, int, double*, double*, double*, int*);
153  void Finley_Assemble_jacobians_3D(double*, dim_t, double*, dim_t, dim_t, dim_t,  void Finley_Assemble_jacobians_3D(double*, int, double*, int, int, int,
154          index_t*, double*, dim_t, double*, double*, double*, index_t*);          int*, double*, int, double*, double*, double*, int*);
155  void Finley_Assemble_jacobians_3D_M2D_E3D(double*, dim_t, double*, dim_t, dim_t,  void Finley_Assemble_jacobians_3D_M2D_E3D(double*, int, double*, int, int,
156          dim_t, index_t*, double*, dim_t, double*, double*, double*, index_t*);          int, int*, double*, int, double*, double*, double*, int*);
157  void Finley_Assemble_jacobians_3D_M2D_E3D_C(double*, dim_t, double*, dim_t,  void Finley_Assemble_jacobians_3D_M2D_E3D_C(double*, int, double*, int,
158          dim_t, dim_t, index_t*, double*, dim_t, double*, double*, double*, index_t*);          int, int, int*, double*, int, double*, double*, double*, int*);
159  void Finley_Assemble_jacobians_3D_M2D_E2D(double*, dim_t, double*, dim_t, dim_t,  void Finley_Assemble_jacobians_3D_M2D_E2D(double*, int, double*, int, int,
160          dim_t, index_t*, double*, dim_t, double*, double*, double*, index_t*);          int, int*, double*, int, double*, double*, double*, int*);
161  void Finley_Assemble_jacobians_3D_M2D_E2D_C(double*, dim_t, double*, dim_t,  void Finley_Assemble_jacobians_3D_M2D_E2D_C(double*, int, double*, int,
162          dim_t, dim_t, index_t*, double*, dim_t, double*, double*, double*, index_t*);          int, int, int*, double*, int, double*, double*, double*, int*);
163    
164  #endif // #ifndef INC_FINLEY_ASSEMBLE  #endif // #ifndef INC_FINLEY_ASSEMBLE
165    

Legend:
Removed from v.4427  
changed lines
  Added in v.4428

  ViewVC Help
Powered by ViewVC 1.1.26