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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3126 - (show annotations)
Wed Sep 1 00:37:53 2010 UTC (9 years ago) by jfenwick
Original Path: branches/domexper/dudley/src/Mesh_markNodes.c
File MIME type: text/plain
File size: 1789 byte(s)
Updated referenceElements and enums
1
2 /*******************************************************
3 *
4 * Copyright (c) 2003-2010 by University of Queensland
5 * Earth Systems Science Computational Center (ESSCC)
6 * http://www.uq.edu.au/esscc
7 *
8 * Primary Business: Queensland, Australia
9 * Licensed under the Open Software License version 3.0
10 * http://www.opensource.org/licenses/osl-3.0.php
11 *
12 *******************************************************/
13
14
15 /**************************************************************/
16
17 /* Dudley: Mesh */
18
19 /* mark the used nodes with offeset: */
20
21 /**************************************************************/
22
23 #include "Mesh.h"
24
25 /**************************************************************/
26
27 void Dudley_Mesh_markNodes(index_t* mask,index_t offset,Dudley_Mesh* in,bool_t useLinear) {
28 Dudley_ElementFile_markNodes(mask,offset,in->Nodes->numNodes,in->Elements,useLinear);
29 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,
34 index_t firstDOF,index_t lastDOF,Dudley_Mesh* in, bool_t useLinear)
35 {
36 index_t *dofIndex;
37 if (useLinear) {
38 dofIndex=in->Nodes->globalReducedDOFIndex;
39 } else {
40 dofIndex=in->Nodes->globalDegreesOfFreedom;
41 }
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);
44 Dudley_ElementFile_markDOFsConnectedToRange(mask,offset,marker,firstDOF,lastDOF,dofIndex,in->Points,useLinear);
45 }

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26