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

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

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

revision 82 by jgs, Tue Oct 26 06:53:54 2004 UTC revision 123 by jgs, Fri Jul 8 04:08:13 2005 UTC
# Line 20  Line 20 
20  /****************************************************************************/  /****************************************************************************/
21    
22    
23  void Finley_ElementFile_copyTable(int offset,Finley_ElementFile* out,int node_offset, int idOffset,Finley_ElementFile* in) {  void Finley_ElementFile_copyTable(index_t offset,Finley_ElementFile* out,index_t node_offset, index_t idOffset,Finley_ElementFile* in) {
24      maybelong i,n;      dim_t i,n;
25      maybelong NN=out->ReferenceElement->Type->numNodes;      dim_t NN=out->ReferenceElement->Type->numNodes;
26      if (in==NULL) return;      if (in==NULL) return;
27      /* check dimension and file size */      /* check dimension and file size */
28      if (out->ReferenceElement->Type->TypeId!=in->ReferenceElement->Type->TypeId) {      if (out->ReferenceElement->Type->TypeId!=in->ReferenceElement->Type->TypeId) {
# Line 38  void Finley_ElementFile_copyTable(int of Line 38  void Finley_ElementFile_copyTable(int of
38         for(n=0;n<in->numElements;n++) {         for(n=0;n<in->numElements;n++) {
39            out->Id[offset+n]=in->Id[n]+idOffset;            out->Id[offset+n]=in->Id[n]+idOffset;
40            out->Tag[offset+n]=in->Tag[n];            out->Tag[offset+n]=in->Tag[n];
41            out->Color[offset+n]=in->Color[n]+out->numColors;            out->Color[offset+n]=in->Color[n]+out->maxColor+1;
42            for(i=0;i<NN;i++) out->Nodes[INDEX2(i,offset+n,NN)]=in->Nodes[INDEX2(i,n,in->ReferenceElement->Type->numNodes)]+node_offset;            for(i=0;i<NN;i++) out->Nodes[INDEX2(i,offset+n,NN)]=in->Nodes[INDEX2(i,n,in->ReferenceElement->Type->numNodes)]+node_offset;
43         }         }
44         out->numColors+=in->numColors;         out->minColor=MIN(out->minColor,in->minColor+out->maxColor+1);
45           out->maxColor=MAX(out->maxColor,in->maxColor+out->maxColor+1);
46      }      }
47  }  }
48  /*  /*
49  * $Log$  * $Log$
50  * Revision 1.1  2004/10/26 06:53:57  jgs  * Revision 1.2  2005/07/08 04:07:49  jgs
51  * Initial revision  * Merge of development branch back to main trunk on 2005-07-08
52    *
53    * Revision 1.1.1.1.2.2  2005/06/30 01:53:55  gross
54    * a bug in coloring fixed
55    *
56    * Revision 1.1.1.1.2.1  2005/06/29 02:34:49  gross
57    * some changes towards 64 integers in finley
58    *
59    * Revision 1.1.1.1  2004/10/26 06:53:57  jgs
60    * initial import of project esys2
61  *  *
62  * Revision 1.1.1.1  2004/06/24 04:00:40  johng  * Revision 1.1.1.1  2004/06/24 04:00:40  johng
63  * Initial version of eys using boost-python.  * Initial version of eys using boost-python.

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

  ViewVC Help
Powered by ViewVC 1.1.26