/[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/esys2/finley/src/finleyC/ElementFile_gather.c revision 123 by jgs, Fri Jul 8 04:08:13 2005 UTC trunk/finley/src/ElementFile_gather.c revision 964 by gross, Tue Feb 13 05:10:26 2007 UTC
# Line 1  Line 1 
1  /* $Id$ */  /*
2     ************************************************************
3     *          Copyright 2006 by ACcESS MNRF                   *
4     *                                                          *
5     *              http://www.access.edu.au                    *
6     *       Primary Business: Queensland, Australia            *
7     *  Licensed under the Open Software License version 3.0    *
8     *     http://www.opensource.org/licenses/osl-3.0.php       *
9     *                                                          *
10     ************************************************************
11    */
12    
13  /**************************************************************/  /**************************************************************/
14    
15  /*   Finley: ElementFile */  /*   Finley: ElementFile */
# Line 9  Line 20 
20    
21  /**************************************************************/  /**************************************************************/
22    
23  /*   Copyrights by ACcESS Australia 2003/04 */  /*  Author: gross@access.edu.au */
24  /*   Author: gross@access.edu.au */  /*  Version: $Id$ */
 /*   Version: $Id$ */  
25    
26  /**************************************************************/  /**************************************************************/
27    
 #include "Finley.h"  
28  #include "ElementFile.h"  #include "ElementFile.h"
29    
30  /**************************************************************/  /**************************************************************/
# Line 30  void Finley_ElementFile_gather(index_t* Line 39  void Finley_ElementFile_gather(index_t*
39       #pragma omp parallel for private(e,k,j) schedule(static)       #pragma omp parallel for private(e,k,j) schedule(static)
40       for (e=0;e<out->numElements;e++) {       for (e=0;e<out->numElements;e++) {
41          k=index[e];          k=index[e];
42    #ifdef PASO_MPI
43            out->Dom[e]=in->Dom[k];
44    #endif
45          out->Id[e]=in->Id[k];          out->Id[e]=in->Id[k];
46          out->Tag[e]=in->Tag[k];          out->Tag[e]=in->Tag[k];
47          out->Color[e]=in->Color[k]+out->maxColor+1;          out->Color[e]=in->Color[k]+out->maxColor+1;
# Line 37  void Finley_ElementFile_gather(index_t* Line 49  void Finley_ElementFile_gather(index_t*
49       }       }
50       out->minColor=MIN(out->minColor,in->minColor+out->maxColor+1);       out->minColor=MIN(out->minColor,in->minColor+out->maxColor+1);
51       out->maxColor=MAX(out->maxColor,in->maxColor+out->maxColor+1);       out->maxColor=MAX(out->maxColor,in->maxColor+out->maxColor+1);
52         out->isPrepared = MIN(out->isPrepared , in->isPrepared);
53     }     }
54  }  }
55  /*  /*
56  * $Log$  * $Log$
57    * Revision 1.3  2005/09/15 03:44:22  jgs
58    * Merge of development branch dev-02 back to main trunk on 2005-09-15
59    *
60    * Revision 1.2.2.1  2005/09/07 06:26:18  gross
61    * the solver from finley are put into the standalone package paso now
62    *
63  * Revision 1.2  2005/07/08 04:07:49  jgs  * Revision 1.2  2005/07/08 04:07:49  jgs
64  * Merge of development branch back to main trunk on 2005-07-08  * Merge of development branch back to main trunk on 2005-07-08
65  *  *

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

  ViewVC Help
Powered by ViewVC 1.1.26