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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 82 - (show annotations)
Tue Oct 26 06:53:54 2004 UTC (14 years, 9 months ago) by jgs
Original Path: trunk/esys2/finley/src/finleyC/ElementFile_markNodes.c
File MIME type: text/plain
File size: 1613 byte(s)
Initial revision

1 /* $Id$ */
2 /**************************************************************/
3
4 /* Finley: ElementFile */
5
6 /* mark the used nodes with offeset: */
7
8 /**************************************************************/
9
10 /* Copyrights by ACcESS Australia 2003 */
11 /* Author: gross@access.edu.au */
12 /* Version: $Id$ */
13
14 /**************************************************************/
15
16 #include "Finley.h"
17 #include "ElementFile.h"
18
19 /**************************************************************/
20
21 void Finley_ElementFile_markNodes(int* mask,int offset,Finley_ElementFile* in,int useLinear) {
22 int i,NN,NN2,e,color,*lin_node;
23 if (in!=NULL) {
24 int id[in->ReferenceElement->Type->numNodes];
25 for (i=0;i<in->ReferenceElement->Type->numNodes;i++) id[i]=i;
26 if (useLinear) {
27 NN=in->LinearReferenceElement->Type->numNodes;
28 lin_node=in->ReferenceElement->Type->linearNodes;
29 } else {
30 NN=in->ReferenceElement->Type->numNodes;
31 lin_node=id;
32 }
33 NN2=in->ReferenceElement->Type->numNodes;
34 #pragma omp parallel private(color)
35 {
36 for (color=0;color<in->numColors;color++) {
37 #pragma omp for private(e,i) schedule(static)
38 for (e=0;e<in->numElements;e++) {
39 if (in->Color[e]==color) {
40 for (i=0;i<NN;i++) mask[in->Nodes[INDEX2(lin_node[i],e,NN2)]-offset]=1;
41 }
42 }
43 }
44 #pragma omp barrier
45 }
46 }
47 }
48 /*
49 * $Log$
50 * Revision 1.1 2004/10/26 06:53:57 jgs
51 * Initial revision
52 *
53 * Revision 1.1.1.1 2004/06/24 04:00:40 johng
54 * Initial version of eys using boost-python.
55 *
56 *
57 */

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26