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

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

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

revision 122 by jgs, Tue Oct 26 06:53:54 2004 UTC revision 123 by jgs, Fri Jul 8 04:08:13 2005 UTC
# Line 17  struct Finley_ElementFile { Line 17  struct Finley_ElementFile {
17                              the same quadrature                              the same quadrature
18                              scheme */                              scheme */
19    
20    maybelong numElements;                         /* number of elements. */    dim_t numElements;                             /* number of elements. */
21      
22    maybelong *Id;                                 /* Id[i] is the id nmber of    index_t *Id;                                 /* Id[i] is the id nmber of
23                              node i. this number is not                              node i. this number is not
24                              used but useful when                              used but useful when
25                              elements are resorted. in                              elements are resorted. in
# Line 29  struct Finley_ElementFile { Line 29  struct Finley_ElementFile {
29                              explicitly stated                              explicitly stated
30                              otherwise. */                              otherwise. */
31    
32    maybelong *Tag;                                /* Tag[i] is the tag of    index_t *Tag;                                /* Tag[i] is the tag of
33                              element i. */                              element i. */
34    
35    maybelong *Nodes;                              /* Nodes[INDEX(k, i,    index_t *Nodes;                              /* Nodes[INDEX(k, i,
36                              ReferenceElement.Type.numNodes)                              ReferenceElement.Type.numNodes)
37                              is the k-the node in the                              is the k-the node in the
38                              i-the element. note that                              i-the element. note that
# Line 43  struct Finley_ElementFile { Line 43  struct Finley_ElementFile {
43                              when refering to the                              when refering to the
44                              linear version of the                              linear version of the
45                              mesh. */                              mesh. */
46    maybelong numColors;                           /* number of colours (sould be as small as possible) */    index_t minColor;                           /* minimum color */
47    maybelong *Color;                              /* assigns each element a color. elements with the same color     */    index_t maxColor;                           /* maximum color */
48      index_t *Color;                              /* assigns each element a color. elements with the same color     */
49                           /* are don't share a node so they can be processed simultaneously */                           /* are don't share a node so they can be processed simultaneously */
50                                                   /* at anytime Color must provide a valid value. In any case one can set  */                                                   /* at anytime Color must provide a valid value. In any case one can set  */
51                                                   /* Color[e]=e  for all e */                                                   /* Color[e]=e  for all e */
52    int order;                     /* order of the element */    index_t order;                     /* order of the element */
53  };  };
54    
55  typedef struct Finley_ElementFile Finley_ElementFile;  typedef struct Finley_ElementFile Finley_ElementFile;
56    
57  Finley_ElementFile* Finley_ElementFile_alloc(ElementTypeId,int);  Finley_ElementFile* Finley_ElementFile_alloc(ElementTypeId,dim_t);
58  void Finley_ElementFile_dealloc(Finley_ElementFile*);  void Finley_ElementFile_dealloc(Finley_ElementFile*);
59  void Finley_ElementFile_improveColoring(Finley_ElementFile* in,maybelong numNodes,maybelong* degreeOfFreedom);  void Finley_ElementFile_improveColoring(Finley_ElementFile* in,dim_t numNodes,dim_t* degreeOfFreedom);
60  void Finley_ElementFile_optimizeDistribution(Finley_ElementFile** in);  void Finley_ElementFile_optimizeDistribution(Finley_ElementFile** in);
61  void Finley_ElementFile_setNodeRange(int*,int*,Finley_ElementFile*);  void Finley_ElementFile_setNodeRange(dim_t*,dim_t*,Finley_ElementFile*);
62  void Finley_ElementFile_relableNodes(int*,int,Finley_ElementFile*);  void Finley_ElementFile_relableNodes(dim_t*,dim_t,Finley_ElementFile*);
63  void Finley_ElementFile_markNodes(int*,int,Finley_ElementFile*,int);  void Finley_ElementFile_markNodes(dim_t*,dim_t,Finley_ElementFile*,dim_t);
64  void Finley_ElementFile_scatter(int*,Finley_ElementFile*,Finley_ElementFile*);  void Finley_ElementFile_scatter(dim_t*,Finley_ElementFile*,Finley_ElementFile*);
65  void Finley_ElementFile_gather(int*,Finley_ElementFile*,Finley_ElementFile*);  void Finley_ElementFile_gather(dim_t*,Finley_ElementFile*,Finley_ElementFile*);
66  void Finley_ElementFile_copyTable(int,Finley_ElementFile*,int,int,Finley_ElementFile*);  void Finley_ElementFile_copyTable(dim_t,Finley_ElementFile*,dim_t,dim_t,Finley_ElementFile*);
67  void Finley_ElementFile_allocTable(Finley_ElementFile*,int);  void Finley_ElementFile_allocTable(Finley_ElementFile*,dim_t);
68  void Finley_ElementFile_deallocTable(Finley_ElementFile*);  void Finley_ElementFile_deallocTable(Finley_ElementFile*);
69  void Finley_ElementFile_prepare(Finley_ElementFile** in,maybelong numNodes,maybelong* degreeOfFreedom);  void Finley_ElementFile_prepare(Finley_ElementFile** in,dim_t numNodes,dim_t* degreeOfFreedom);
70    
71  #endif /* #ifndef INC_FINLEY_ELEMENTFILE */  #endif /* #ifndef INC_FINLEY_ELEMENTFILE */
72    
73  /*  /*
74   * $Log$   * $Log$
75   * Revision 1.1  2004/10/26 06:53:57  jgs   * Revision 1.2  2005/07/08 04:07:49  jgs
76   * Initial revision   * Merge of development branch back to main trunk on 2005-07-08
77     *
78     * Revision 1.1.1.1.2.1  2005/06/29 02:34:49  gross
79     * some changes towards 64 integers in finley
80     *
81     * Revision 1.1.1.1  2004/10/26 06:53:57  jgs
82     * initial import of project esys2
83   *   *
84   * Revision 1.1.1.1  2004/06/24 04:00:40  johng   * Revision 1.1.1.1  2004/06/24 04:00:40  johng
85   * Initial version of eys using boost-python.   * Initial version of eys using boost-python.

Legend:
Removed from v.122  
changed lines
  Added in v.123

  ViewVC Help
Powered by ViewVC 1.1.26