/[escript]/trunk/finley/src/NodeFile_scatter.c
ViewVC logotype

Contents of /trunk/finley/src/NodeFile_scatter.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 123 - (show annotations)
Fri Jul 8 04:08:13 2005 UTC (14 years, 4 months ago) by jgs
Original Path: trunk/esys2/finley/src/finleyC/NodeFile_scatter.c
File MIME type: text/plain
File size: 1659 byte(s)
Merge of development branch back to main trunk on 2005-07-08

1 /* $Id$ */
2 /**************************************************************/
3
4 /* Finley: Mesh: NodeFile */
5
6 /* scatters the NodeFile in into NodeFile out using index[0:in->numNodes-1]. */
7 /* index has to be between 0 and out->numNodes-1. */
8 /* coloring is choosen for the worst case */
9
10 /**************************************************************/
11
12 /* Copyrights by ACcESS Australia 2003/04 */
13 /* Author: gross@access.edu.au */
14 /* Version: $Id$ */
15
16 /**************************************************************/
17
18 #include "Common.h"
19 #include "NodeFile.h"
20
21 /**************************************************************/
22
23 void Finley_NodeFile_scatter(index_t* index, Finley_NodeFile* in, Finley_NodeFile* out) {
24 dim_t i,j;
25 index_t k;
26 if (in->Id!=NULL) {
27 #pragma omp parallel for private(i,j,k) schedule(static)
28 for (i=0;i<in->numNodes;i++) {
29 k=index[i];
30 out->Id[k]=in->Id[i];
31 out->Tag[k]=in->Tag[i];
32 out->degreeOfFreedom[k]=in->degreeOfFreedom[i];
33 out->reducedDegreeOfFreedom[k]=in->reducedDegreeOfFreedom[i];
34 out->toReduced[k]=in->toReduced[i];
35 for(j=0;j<in->numDim;j++) out->Coordinates[INDEX2(j,k,in->numDim)]=in->Coordinates[INDEX2(j,i,in->numDim)];
36 }
37 }
38 }
39 /*
40 * $Log$
41 * Revision 1.2 2005/07/08 04:07:55 jgs
42 * Merge of development branch back to main trunk on 2005-07-08
43 *
44 * Revision 1.1.1.1.2.1 2005/06/29 02:34:54 gross
45 * some changes towards 64 integers in finley
46 *
47 * Revision 1.1.1.1 2004/10/26 06:53:57 jgs
48 * initial import of project esys2
49 *
50 * Revision 1.1.1.1 2004/06/24 04:00:40 johng
51 * Initial version of eys using boost-python.
52 *
53 *
54 */

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26