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

Contents of /trunk-mpi-branch/finley/src/Mesh_markNodes.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1253 - (show annotations)
Fri Aug 17 04:09:29 2007 UTC (12 years, 9 months ago) by gross
File MIME type: text/plain
File size: 2219 byte(s)
finally everthing for MPI is in the code. now testing is needed
1 /*
2 ************************************************************
3 * Copyright 2006 by ACcESS MNRF *
4 * *
5 * http://www.access.edu.au *
6 * Primary Business: Queensland, Australia *
7 * Licensed under the Open Software License version 3.0 *
8 * http://www.opensource.org/licenses/osl-3.0.php *
9 * *
10 ************************************************************
11 */
12
13 /**************************************************************/
14
15 /* Finley: Mesh */
16
17 /* mark the used nodes with offeset: */
18
19 /**************************************************************/
20
21 /* Author: gross@access.edu.au */
22 /* Version: $Id$ */
23
24 /**************************************************************/
25
26 #include "Mesh.h"
27
28 /**************************************************************/
29
30 void Finley_Mesh_markNodes(index_t* mask,index_t offset,Finley_Mesh* in,bool_t useLinear) {
31 Finley_ElementFile_markNodes(mask,offset,in->Elements,useLinear);
32 Finley_ElementFile_markNodes(mask,offset,in->FaceElements,useLinear);
33 Finley_ElementFile_markNodes(mask,offset,in->ContactElements,useLinear);
34 Finley_ElementFile_markNodes(mask,offset,in->Points,useLinear);
35 }
36
37 void Finley_Mesh_markDOFsConnectedToRange(index_t* mask, index_t offset, index_t marker,
38 index_t firstDOF,index_t lastDOF,Finley_Mesh* in, bool_t useLinear)
39 {
40 index_t *dofIndex;
41 if (useLinear) {
42 dofIndex=in->Nodes->globalReducedDOFIndex;
43 } else {
44 dofIndex=in->Nodes->globalDegreesOfFreedom;
45 }
46 Finley_ElementFile_markDOFsConnectedToRange(mask,offset,marker,firstDOF,lastDOF,dofIndex,in->Elements,useLinear);
47 Finley_ElementFile_markDOFsConnectedToRange(mask,offset,marker,firstDOF,lastDOF,dofIndex,in->FaceElements,useLinear);
48 Finley_ElementFile_markDOFsConnectedToRange(mask,offset,marker,firstDOF,lastDOF,dofIndex,in->ContactElements,useLinear);
49 Finley_ElementFile_markDOFsConnectedToRange(mask,offset,marker,firstDOF,lastDOF,dofIndex,in->Points,useLinear);
50 }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26