/[escript]/temp/finley/src/ElementFile_scatter.c
ViewVC logotype

Diff of /temp/finley/src/ElementFile_scatter.c

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

revision 964 by gross, Tue Feb 13 05:10:26 2007 UTC revision 1312 by ksteube, Mon Sep 24 06:18:44 2007 UTC
# Line 1  Line 1 
1  /*  
2   ************************************************************  /* $Id$ */
3   *          Copyright 2006 by ACcESS MNRF                   *  
4   *                                                          *  /*******************************************************
5   *              http://www.access.edu.au                    *   *
6   *       Primary Business: Queensland, Australia            *   *           Copyright 2003-2007 by ACceSS MNRF
7   *  Licensed under the Open Software License version 3.0    *   *       Copyright 2007 by University of Queensland
8   *     http://www.opensource.org/licenses/osl-3.0.php       *   *
9   *                                                          *   *                http://esscc.uq.edu.au
10   ************************************************************   *        Primary Business: Queensland, Australia
11  */   *  Licensed under the Open Software License version 3.0
12     *     http://www.opensource.org/licenses/osl-3.0.php
13     *
14     *******************************************************/
15    
16  /**************************************************************/  /**************************************************************/
17  /*                                                                                            */  /*                                                                                            */
# Line 20  Line 23 
23  /*                                                                                            */  /*                                                                                            */
24  /**************************************************************/  /**************************************************************/
25    
 /*  Author: gross@access.edu.au */  
 /*  Version: $Id$ */  
   
 /**************************************************************/  
   
26  #include "ElementFile.h"  #include "ElementFile.h"
27    
28  /**************************************************************/  /**************************************************************/
# Line 39  void Finley_ElementFile_scatter(index_t* Line 37  void Finley_ElementFile_scatter(index_t*
37       #pragma omp parallel for private(e,k,j) schedule(static)       #pragma omp parallel for private(e,k,j) schedule(static)
38       for (e=0;e<in->numElements;e++) {       for (e=0;e<in->numElements;e++) {
39          k=index[e];          k=index[e];
40  #ifdef PASO_MPI          out->Owner[k]=in->Owner[e];
         out->Dom[k]=in->Dom[e];  
 #endif  
41          out->Id[k]=in->Id[e];          out->Id[k]=in->Id[e];
42          out->Tag[k]=in->Tag[e];          out->Tag[k]=in->Tag[e];
43          out->Color[k]=in->Color[e]+out->maxColor+1;          out->Color[k]=in->Color[e]+out->maxColor+1;
# Line 49  void Finley_ElementFile_scatter(index_t* Line 45  void Finley_ElementFile_scatter(index_t*
45       }       }
46       out->minColor=MIN(out->minColor,in->minColor+out->maxColor+1);       out->minColor=MIN(out->minColor,in->minColor+out->maxColor+1);
47       out->maxColor=MAX(out->maxColor,in->maxColor+out->maxColor+1);       out->maxColor=MAX(out->maxColor,in->maxColor+out->maxColor+1);
      out->isPrepared = MIN(in-> isPrepared,  out->isPrepared);  
48     }     }
49  }  }
 /*  
 * $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.964  
changed lines
  Added in v.1312

  ViewVC Help
Powered by ViewVC 1.1.26