/[escript]/trunk/finley/src/finleyC/NodeFile_gatter.c
ViewVC logotype

Contents of /trunk/finley/src/finleyC/NodeFile_gatter.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 82 - (show annotations)
Tue Oct 26 06:53:54 2004 UTC (14 years, 10 months ago) by jgs
Original Path: trunk/esys2/finley/src/finleyC/NodeFile_gatter.c
File MIME type: text/plain
File size: 1415 byte(s)
Initial revision

1 /* $Id$ */
2 /**************************************************************/
3
4 /* Finley: Mesh: NodeFile */
5
6 /* gathers the NodeFile out from the NodeFile in using index[0:out->numNodes-1]. */
7 /* index has to be between 0 and in->numNodes-1. */
8
9 /**************************************************************/
10
11 /* Copyrights by ACcESS Australia 2003/04 */
12 /* Author: gross@access.edu.au */
13 /* Version: $Id$ */
14
15 /**************************************************************/
16
17 #include "Common.h"
18 #include "NodeFile.h"
19
20 /**************************************************************/
21
22 void Finley_NodeFile_gather(int* index, Finley_NodeFile* in, Finley_NodeFile* out) {
23 maybelong i,k,j;
24 if (in->Id!=NULL) {
25 #pragma omp parallel for private(i,j,k) schedule(static)
26 for (i=0;i<out->numNodes;i++) {
27 k=index[i];
28 out->Id[i]=in->Id[k];
29 out->Tag[i]=in->Tag[k];
30 out->degreeOfFreedom[i]=in->degreeOfFreedom[k];
31 out->reducedDegreeOfFreedom[i]=in->reducedDegreeOfFreedom[k];
32 out->toReduced[i]=in->toReduced[k];
33 for(j=0;j<in->numDim;j++) out->Coordinates[INDEX2(j,i,in->numDim)]=in->Coordinates[INDEX2(j,k,in->numDim)];
34 }
35 }
36 }
37 /*
38 * $Log$
39 * Revision 1.1 2004/10/26 06:53:57 jgs
40 * Initial revision
41 *
42 * Revision 1.1.1.1 2004/06/24 04:00:40 johng
43 * Initial version of eys using boost-python.
44 *
45 *
46 */

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26