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

Annotation of /trunk/finley/src/NodeFile_gather.c

Parent Directory Parent Directory | Revision Log Revision Log


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

1 jgs 82 /* $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 jgs 123 dim_t i,j;
24     index_t k;
25 jgs 82 if (in->Id!=NULL) {
26     #pragma omp parallel for private(i,j,k) schedule(static)
27     for (i=0;i<out->numNodes;i++) {
28     k=index[i];
29     out->Id[i]=in->Id[k];
30     out->Tag[i]=in->Tag[k];
31     out->degreeOfFreedom[i]=in->degreeOfFreedom[k];
32     out->reducedDegreeOfFreedom[i]=in->reducedDegreeOfFreedom[k];
33     out->toReduced[i]=in->toReduced[k];
34     for(j=0;j<in->numDim;j++) out->Coordinates[INDEX2(j,i,in->numDim)]=in->Coordinates[INDEX2(j,k,in->numDim)];
35     }
36     }
37     }
38     /*
39     * $Log$
40 jgs 123 * Revision 1.2 2005/07/08 04:07:55 jgs
41     * Merge of development branch back to main trunk on 2005-07-08
42 jgs 82 *
43 jgs 123 * Revision 1.1.1.1.2.1 2005/06/29 02:34:54 gross
44     * some changes towards 64 integers in finley
45     *
46     * Revision 1.1.1.1 2004/10/26 06:53:57 jgs
47     * initial import of project esys2
48     *
49 jgs 82 * Revision 1.1.1.1 2004/06/24 04:00:40 johng
50     * Initial version of eys using boost-python.
51     *
52     *
53     */

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26