/[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 trunk/finley/src/ElementFile_gather.c revision 964 by gross, Tue Feb 13 05:10:26 2007 UTC
# Line 1  Line 1 
1  /*  /*
2   ******************************************************************************   ************************************************************
3   *                                                                            *   *          Copyright 2006 by ACcESS MNRF                   *
4   *       COPYRIGHT  ACcESS 2003,2004,2005 -  All Rights Reserved              *   *                                                          *
5   *                                                                            *   *              http://www.access.edu.au                    *
6   * This software is the property of ACcESS. No part of this code              *   *       Primary Business: Queensland, Australia            *
7   * may be copied in any form or by any means without the expressed written    *   *  Licensed under the Open Software License version 3.0    *
8   * consent of ACcESS.  Copying, use or modification of this software          *   *     http://www.opensource.org/licenses/osl-3.0.php       *
9   * by any unauthorised person is illegal unless that person has a software    *   *                                                          *
10   * license agreement with ACcESS.                                             *   ************************************************************
  *                                                                            *  
  ******************************************************************************  
11  */  */
12    
13  /**************************************************************/  /**************************************************************/
# Line 41  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 48  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  /*  /*

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

  ViewVC Help
Powered by ViewVC 1.1.26