/[escript]/branches/doubleplusgood/dudley/src/ElementFile_gather.cpp
ViewVC logotype

Diff of /branches/doubleplusgood/dudley/src/ElementFile_gather.cpp

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

trunk/finley/src/finleyC/ElementFile_gather.c revision 155 by jgs, Wed Nov 9 02:02:19 2005 UTC branches/domexper/finley/src/ElementFile_gather.c revision 3079 by jfenwick, Tue Aug 3 04:04:51 2010 UTC
# Line 1  Line 1 
1  /*  
2   ******************************************************************************  /*******************************************************
3   *                                                                            *  *
4   *       COPYRIGHT  ACcESS 2003,2004,2005 -  All Rights Reserved              *  * Copyright (c) 2003-2010 by University of Queensland
5   *                                                                            *  * Earth Systems Science Computational Center (ESSCC)
6   * This software is the property of ACcESS. No part of this code              *  * http://www.uq.edu.au/esscc
7   * may be copied in any form or by any means without the expressed written    *  *
8   * consent of ACcESS.  Copying, use or modification of this software          *  * Primary Business: Queensland, Australia
9   * by any unauthorised person is illegal unless that person has a software    *  * Licensed under the Open Software License version 3.0
10   * license agreement with ACcESS.                                             *  * http://www.opensource.org/licenses/osl-3.0.php
11   *                                                                            *  *
12   ******************************************************************************  *******************************************************/
13  */  
14    
15  /**************************************************************/  /**************************************************************/
16    
# Line 22  Line 22 
22    
23  /**************************************************************/  /**************************************************************/
24    
 /*  Author: gross@access.edu.au */  
 /*  Version: $Id$ */  
   
 /**************************************************************/  
   
25  #include "ElementFile.h"  #include "ElementFile.h"
26    
27  /**************************************************************/  /**************************************************************/
# Line 34  Line 29 
29  void Finley_ElementFile_gather(index_t* index, Finley_ElementFile* in, Finley_ElementFile* out) {  void Finley_ElementFile_gather(index_t* index, Finley_ElementFile* in, Finley_ElementFile* out) {
30     index_t k;     index_t k;
31     dim_t e,j;     dim_t e,j;
32     dim_t NN_in=in->ReferenceElement->Type->numNodes;     dim_t NN_in=in->numNodes;
33     dim_t NN_out=out->ReferenceElement->Type->numNodes;     dim_t NN_out=out->numNodes;
34     if (in!=NULL) {     if (in!=NULL) {
35       /*OMP */       /*OMP */
36       #pragma omp parallel for private(e,k,j) schedule(static)       #pragma omp parallel for private(e,k,j) schedule(static)
# Line 43  void Finley_ElementFile_gather(index_t* Line 38  void Finley_ElementFile_gather(index_t*
38          k=index[e];          k=index[e];
39          out->Id[e]=in->Id[k];          out->Id[e]=in->Id[k];
40          out->Tag[e]=in->Tag[k];          out->Tag[e]=in->Tag[k];
41            out->Owner[e]=in->Owner[k];
42          out->Color[e]=in->Color[k]+out->maxColor+1;          out->Color[e]=in->Color[k]+out->maxColor+1;
43          for(j=0;j<MIN(NN_out,NN_in);j++) out->Nodes[INDEX2(j,e,NN_out)]=in->Nodes[INDEX2(j,k,NN_in)];          for(j=0;j<MIN(NN_out,NN_in);j++) out->Nodes[INDEX2(j,e,NN_out)]=in->Nodes[INDEX2(j,k,NN_in)];
44       }       }
# Line 50  void Finley_ElementFile_gather(index_t* Line 46  void Finley_ElementFile_gather(index_t*
46       out->maxColor=MAX(out->maxColor,in->maxColor+out->maxColor+1);       out->maxColor=MAX(out->maxColor,in->maxColor+out->maxColor+1);
47     }     }
48  }  }
 /*  
 * $Log$  
 * Revision 1.3  2005/09/15 03:44:22  jgs  
 * Merge of development branch dev-02 back to main trunk on 2005-09-15  
 *  
 * Revision 1.2.2.1  2005/09/07 06:26:18  gross  
 * the solver from finley are put into the standalone package paso now  
 *  
 * Revision 1.2  2005/07/08 04:07:49  jgs  
 * Merge of development branch back to main trunk on 2005-07-08  
 *  
 * Revision 1.1.1.1.2.2  2005/06/30 01:53:55  gross  
 * a bug in coloring fixed  
 *  
 * Revision 1.1.1.1.2.1  2005/06/29 02:34:49  gross  
 * some changes towards 64 integers in finley  
 *  
 * Revision 1.1.1.1  2004/10/26 06:53:57  jgs  
 * initial import of project esys2  
 *  
 * Revision 1.1.1.1  2004/06/24 04:00:40  johng  
 * Initial version of eys using boost-python.  
 *  
 *  
 */  

Legend:
Removed from v.155  
changed lines
  Added in v.3079

  ViewVC Help
Powered by ViewVC 1.1.26