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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1388 - (show annotations)
Fri Jan 11 07:45:58 2008 UTC (11 years, 10 months ago) by trankine
File MIME type: text/plain
File size: 1971 byte(s)
And get the *(&(*&(* name right
1
2 /* $Id$ */
3
4 /*******************************************************
5 *
6 * Copyright 2003-2007 by ACceSS MNRF
7 * Copyright 2007 by University of Queensland
8 *
9 * http://esscc.uq.edu.au
10 * Primary Business: Queensland, Australia
11 * Licensed under the Open Software License version 3.0
12 * http://www.opensource.org/licenses/osl-3.0.php
13 *
14 *******************************************************/
15
16 /**************************************************************/
17
18 /* Finley: Mesh */
19
20 /* mark the used nodes with offeset: */
21
22 /**************************************************************/
23
24 #include "Mesh.h"
25
26 /**************************************************************/
27
28 void Finley_Mesh_markNodes(index_t* mask,index_t offset,Finley_Mesh* in,bool_t useLinear) {
29 Finley_ElementFile_markNodes(mask,offset,in->Elements,useLinear);
30 Finley_ElementFile_markNodes(mask,offset,in->FaceElements,useLinear);
31 Finley_ElementFile_markNodes(mask,offset,in->ContactElements,useLinear);
32 Finley_ElementFile_markNodes(mask,offset,in->Points,useLinear);
33 }
34
35 void Finley_Mesh_markDOFsConnectedToRange(index_t* mask, index_t offset, index_t marker,
36 index_t firstDOF,index_t lastDOF,Finley_Mesh* in, bool_t useLinear)
37 {
38 index_t *dofIndex;
39 if (useLinear) {
40 dofIndex=in->Nodes->globalReducedDOFIndex;
41 } else {
42 dofIndex=in->Nodes->globalDegreesOfFreedom;
43 }
44 Finley_ElementFile_markDOFsConnectedToRange(mask,offset,marker,firstDOF,lastDOF,dofIndex,in->Elements,useLinear);
45 Finley_ElementFile_markDOFsConnectedToRange(mask,offset,marker,firstDOF,lastDOF,dofIndex,in->FaceElements,useLinear);
46 Finley_ElementFile_markDOFsConnectedToRange(mask,offset,marker,firstDOF,lastDOF,dofIndex,in->ContactElements,useLinear);
47 Finley_ElementFile_markDOFsConnectedToRange(mask,offset,marker,firstDOF,lastDOF,dofIndex,in->Points,useLinear);
48 }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26