/[escript]/trunk/dudley/src/ElementFile_scatter.c
ViewVC logotype

Diff of /trunk/dudley/src/ElementFile_scatter.c

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

trunk/finley/src/finley/ElementFile_scatter.c revision 201 by jgs, Wed Nov 23 04:10:21 2005 UTC branches/domexper/dudley/src/ElementFile_scatter.c revision 3080 by jfenwick, Tue Aug 3 04:28:03 2010 UTC
# Line 1  Line 1 
 /*  
  ******************************************************************************  
  *                                                                            *  
  *       COPYRIGHT  ACcESS 2003,2004,2005 -  All Rights Reserved              *  
  *                                                                            *  
  * This software is the property of ACcESS. No part of this code              *  
  * may be copied in any form or by any means without the expressed written    *  
  * consent of ACcESS.  Copying, use or modification of this software          *  
  * by any unauthorised person is illegal unless that person has a software    *  
  * license agreement with ACcESS.                                             *  
  *                                                                            *  
  ******************************************************************************  
 */  
1    
2  /**************************************************************/  /*******************************************************
3  /*                                                                                            */  *
4  /*   Finley: ElementFile                                                                      */  * Copyright (c) 2003-2010 by University of Queensland
5  /*                                                                                            */  * Earth Systems Science Computational Center (ESSCC)
6  /*   scatter the ElementFile in into the  ElementFile out using index[0:out->numElements-1].  */  * http://www.uq.edu.au/esscc
7  /*   index has to be between 0 and in->numElements-1.                                         */  *
8  /*   a conservative assumtion on the coloring is made                                         */  * Primary Business: Queensland, Australia
9  /*                                                                                            */  * Licensed under the Open Software License version 3.0
10  /**************************************************************/  * http://www.opensource.org/licenses/osl-3.0.php
11    *
12  /*  Author: gross@access.edu.au */  *******************************************************/
13  /*  Version: $Id$ */  
14    
15  /**************************************************************/  /**************************************************************
16    *                                                                                            
17    *   Finley: ElementFile                                                                      
18    *                                                                                            
19    *   scatter the ElementFile in into the  ElementFile out using index[0:out->numElements-1].  
20    *   index has to be between 0 and in->numElements-1.                                        
21    *   a conservative assumtion on the coloring is made                                        
22    *                                                                                            
23    **************************************************************/
24    
25  #include "ElementFile.h"  #include "ElementFile.h"
26    
# Line 35  void Finley_ElementFile_scatter(index_t* Line 30  void Finley_ElementFile_scatter(index_t*
30     index_t k;     index_t k;
31     dim_t e,j;     dim_t e,j;
32     if (in!=NULL) {     if (in!=NULL) {
33       dim_t NN_in=in->ReferenceElement->Type->numNodes;       dim_t NN_in=in->numNodes;
34       dim_t NN_out=out->ReferenceElement->Type->numNodes;       dim_t NN_out=out->numNodes;
35       /*OMP */       /*OMP */
36       #pragma omp parallel for private(e,k,j) schedule(static)       #pragma omp parallel for private(e,k,j) schedule(static)
37       for (e=0;e<in->numElements;e++) {       for (e=0;e<in->numElements;e++) {
38          k=index[e];          k=index[e];
39            out->Owner[k]=in->Owner[e];
40          out->Id[k]=in->Id[e];          out->Id[k]=in->Id[e];
41          out->Tag[k]=in->Tag[e];          out->Tag[k]=in->Tag[e];
42          out->Color[k]=in->Color[e]+out->maxColor+1;          out->Color[k]=in->Color[e]+out->maxColor+1;
# Line 50  void Finley_ElementFile_scatter(index_t* Line 46  void Finley_ElementFile_scatter(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:50  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:50  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.201  
changed lines
  Added in v.3080

  ViewVC Help
Powered by ViewVC 1.1.26