/[escript]/trunk/dudley/src/NodeMapping.h
ViewVC logotype

Diff of /trunk/dudley/src/NodeMapping.h

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

revision 3086 by jfenwick, Thu Aug 5 05:07:58 2010 UTC revision 3224 by jfenwick, Wed Sep 29 05:19:37 2010 UTC
# Line 11  Line 11 
11  *  *
12  *******************************************************/  *******************************************************/
13    
   
14  /*                                                                                                                     */  /*                                                                                                                     */
15  /* NodeMapping provides a mapping from the local nodes typically to the degrees of freedom,                            */  /* NodeMapping provides a mapping from the local nodes typically to the degrees of freedom,                            */
16  /*    the reduced degrees of freedom or the reduced node set                                                           */  /*    the reduced degrees of freedom or the reduced node set                                                           */
# Line 22  Line 21 
21    
22  #include "paso/Paso_MPI.h"  #include "paso/Paso_MPI.h"
23    
   
24  struct Dudley_NodeMapping {  struct Dudley_NodeMapping {
25    dim_t numNodes; /* number of FEM nodes */      dim_t numNodes;     /* number of FEM nodes */
26    index_t *target; /* target[i] defines the target if FEM  node i =0,...,numNodes */      index_t *target;        /* target[i] defines the target if FEM  node i =0,...,numNodes */
27    index_t unused;  /* target[i]=unused defines that no target is defined for FEM  node i */      index_t unused;     /* target[i]=unused defines that no target is defined for FEM  node i */
28    dim_t numTargets; /* number of targets */      dim_t numTargets;       /* number of targets */
29    index_t *map;  /* maps the target nodes back to the FEM nodes: target[map[i]]=i */      index_t *map;       /* maps the target nodes back to the FEM nodes: target[map[i]]=i */
30    dim_t reference_counter;      dim_t reference_counter;
31  };  };
32  typedef struct Dudley_NodeMapping Dudley_NodeMapping;  typedef struct Dudley_NodeMapping Dudley_NodeMapping;
33    
34  Dudley_NodeMapping* Dudley_NodeMapping_alloc(dim_t numNodes, index_t* target, index_t unused);  Dudley_NodeMapping *Dudley_NodeMapping_alloc(dim_t numNodes, index_t * target, index_t unused);
35  void Dudley_NodeMapping_free(Dudley_NodeMapping*);  void Dudley_NodeMapping_free(Dudley_NodeMapping *);
36  Dudley_NodeMapping*  NodeMapping_getReference(Dudley_NodeMapping *in );  Dudley_NodeMapping *NodeMapping_getReference(Dudley_NodeMapping * in);
37    
38  #endif  #endif

Legend:
Removed from v.3086  
changed lines
  Added in v.3224

  ViewVC Help
Powered by ViewVC 1.1.26