/[escript]/trunk/dudley/src/Mesh_markNodes.c
ViewVC logotype

Diff of /trunk/dudley/src/Mesh_markNodes.c

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

revision 3126 by jfenwick, Wed Sep 1 00:37:53 2010 UTC revision 3224 by jfenwick, Wed Sep 29 05:19:37 2010 UTC
# Line 11  Line 11 
11  *  *
12  *******************************************************/  *******************************************************/
13    
   
14  /**************************************************************/  /**************************************************************/
15    
16  /*   Dudley: Mesh */  /*   Dudley: Mesh */
# Line 24  Line 23 
23    
24  /**************************************************************/  /**************************************************************/
25    
26  void Dudley_Mesh_markNodes(index_t* mask,index_t offset,Dudley_Mesh* in,bool_t useLinear) {  void Dudley_Mesh_markNodes(index_t * mask, index_t offset, Dudley_Mesh * in, bool_t useLinear)
27            Dudley_ElementFile_markNodes(mask,offset,in->Nodes->numNodes,in->Elements,useLinear);  {
28            Dudley_ElementFile_markNodes(mask,offset,in->Nodes->numNodes,in->FaceElements,useLinear);      Dudley_ElementFile_markNodes(mask, offset, in->Nodes->numNodes, in->Elements, useLinear);
29            Dudley_ElementFile_markNodes(mask,offset,in->Nodes->numNodes,in->Points,useLinear);      Dudley_ElementFile_markNodes(mask, offset, in->Nodes->numNodes, in->FaceElements, useLinear);
30        Dudley_ElementFile_markNodes(mask, offset, in->Nodes->numNodes, in->Points, useLinear);
31  }  }
32    
33  void Dudley_Mesh_markDOFsConnectedToRange(index_t* mask, index_t offset, index_t marker,  void Dudley_Mesh_markDOFsConnectedToRange(index_t * mask, index_t offset, index_t marker,
34                                            index_t firstDOF,index_t lastDOF,Dudley_Mesh* in, bool_t useLinear)                        index_t firstDOF, index_t lastDOF, Dudley_Mesh * in, bool_t useLinear)
35  {  {
36     index_t *dofIndex;      index_t *dofIndex;
37     if (useLinear) {      if (useLinear)
38         dofIndex=in->Nodes->globalReducedDOFIndex;      {
39     } else {      dofIndex = in->Nodes->globalReducedDOFIndex;
40         dofIndex=in->Nodes->globalDegreesOfFreedom;      }
41     }      else
42     Dudley_ElementFile_markDOFsConnectedToRange(mask,offset,marker,firstDOF,lastDOF,dofIndex,in->Elements,useLinear);      {
43     Dudley_ElementFile_markDOFsConnectedToRange(mask,offset,marker,firstDOF,lastDOF,dofIndex,in->FaceElements,useLinear);      dofIndex = in->Nodes->globalDegreesOfFreedom;
44     Dudley_ElementFile_markDOFsConnectedToRange(mask,offset,marker,firstDOF,lastDOF,dofIndex,in->Points,useLinear);      }
45        Dudley_ElementFile_markDOFsConnectedToRange(mask, offset, marker, firstDOF, lastDOF, dofIndex, in->Elements,
46                            useLinear);
47        Dudley_ElementFile_markDOFsConnectedToRange(mask, offset, marker, firstDOF, lastDOF, dofIndex, in->FaceElements,
48                            useLinear);
49        Dudley_ElementFile_markDOFsConnectedToRange(mask, offset, marker, firstDOF, lastDOF, dofIndex, in->Points,
50                            useLinear);
51  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.26