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

Annotation of /trunk/finley/src/finleyC/ElementFile_markNodes.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 123 - (hide annotations)
Fri Jul 8 04:08:13 2005 UTC (14 years, 1 month ago) by jgs
Original Path: trunk/esys2/finley/src/finleyC/ElementFile_markNodes.c
File MIME type: text/plain
File size: 1876 byte(s)
Merge of development branch back to main trunk on 2005-07-08

1 jgs 82 /* $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 jgs 123 void Finley_ElementFile_markNodes(index_t* mask,index_t offset,Finley_ElementFile* in,bool_t useLinear) {
22     dim_t i,NN,NN2,e;
23     index_t color,*lin_node;
24 jgs 82 if (in!=NULL) {
25 jgs 123 index_t id[in->ReferenceElement->Type->numNodes];
26 jgs 82 for (i=0;i<in->ReferenceElement->Type->numNodes;i++) id[i]=i;
27     if (useLinear) {
28     NN=in->LinearReferenceElement->Type->numNodes;
29     lin_node=in->ReferenceElement->Type->linearNodes;
30     } else {
31     NN=in->ReferenceElement->Type->numNodes;
32     lin_node=id;
33     }
34     NN2=in->ReferenceElement->Type->numNodes;
35     #pragma omp parallel private(color)
36     {
37 jgs 123 for (color=in->minColor;color<=in->maxColor;color++) {
38 jgs 82 #pragma omp for private(e,i) schedule(static)
39     for (e=0;e<in->numElements;e++) {
40     if (in->Color[e]==color) {
41     for (i=0;i<NN;i++) mask[in->Nodes[INDEX2(lin_node[i],e,NN2)]-offset]=1;
42     }
43     }
44     }
45     #pragma omp barrier
46     }
47     }
48     }
49     /*
50     * $Log$
51 jgs 123 * Revision 1.2 2005/07/08 04:07:50 jgs
52     * Merge of development branch back to main trunk on 2005-07-08
53 jgs 82 *
54 jgs 123 * Revision 1.1.1.1.2.1 2005/06/29 02:34:49 gross
55     * some changes towards 64 integers in finley
56     *
57     * Revision 1.1.1.1 2004/10/26 06:53:57 jgs
58     * initial import of project esys2
59     *
60 jgs 82 * Revision 1.1.1.1 2004/06/24 04:00:40 johng
61     * Initial version of eys using boost-python.
62     *
63     *
64     */

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26