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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 122 by jgs, Tue Oct 26 06:53:54 2004 UTC revision 123 by jgs, Fri Jul 8 04:08:13 2005 UTC
# Line 18  Line 18 
18    
19  /**************************************************************/  /**************************************************************/
20    
21  void Finley_ElementFile_markNodes(int* mask,int offset,Finley_ElementFile* in,int useLinear) {  void Finley_ElementFile_markNodes(index_t* mask,index_t offset,Finley_ElementFile* in,bool_t useLinear) {
22     int i,NN,NN2,e,color,*lin_node;     dim_t i,NN,NN2,e;
23       index_t color,*lin_node;
24     if (in!=NULL) {     if (in!=NULL) {
25       int id[in->ReferenceElement->Type->numNodes];       index_t id[in->ReferenceElement->Type->numNodes];
26       for (i=0;i<in->ReferenceElement->Type->numNodes;i++) id[i]=i;       for (i=0;i<in->ReferenceElement->Type->numNodes;i++) id[i]=i;
27       if (useLinear) {       if (useLinear) {
28          NN=in->LinearReferenceElement->Type->numNodes;          NN=in->LinearReferenceElement->Type->numNodes;
# Line 33  void Finley_ElementFile_markNodes(int* m Line 34  void Finley_ElementFile_markNodes(int* m
34       NN2=in->ReferenceElement->Type->numNodes;       NN2=in->ReferenceElement->Type->numNodes;
35       #pragma omp parallel private(color)       #pragma omp parallel private(color)
36       {       {
37          for (color=0;color<in->numColors;color++) {          for (color=in->minColor;color<=in->maxColor;color++) {
38            #pragma omp for private(e,i) schedule(static)            #pragma omp for private(e,i) schedule(static)
39            for (e=0;e<in->numElements;e++) {            for (e=0;e<in->numElements;e++) {
40              if (in->Color[e]==color) {              if (in->Color[e]==color) {
# Line 47  void Finley_ElementFile_markNodes(int* m Line 48  void Finley_ElementFile_markNodes(int* m
48  }  }
49  /*  /*
50  * $Log$  * $Log$
51  * Revision 1.1  2004/10/26 06:53:57  jgs  * Revision 1.2  2005/07/08 04:07:50  jgs
52  * Initial revision  * Merge of development branch back to main trunk on 2005-07-08
53    *
54    * 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  * Revision 1.1.1.1  2004/06/24 04:00:40  johng  * Revision 1.1.1.1  2004/06/24 04:00:40  johng
61  * Initial version of eys using boost-python.  * Initial version of eys using boost-python.

Legend:
Removed from v.122  
changed lines
  Added in v.123

  ViewVC Help
Powered by ViewVC 1.1.26