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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 201 - (hide annotations)
Wed Nov 23 04:10:21 2005 UTC (13 years, 11 months ago) by jgs
Original Path: trunk/finley/src/finley/NodeFile_gatter.c
File MIME type: text/plain
File size: 2687 byte(s)
copy finleyC and CPPAdapter to finley and finley/CPPAdapter to
facilitate scons builds

1 jgs 150 /*
2     ******************************************************************************
3     * *
4     * COPYRIGHT ACcESS 2003,2004,2005 - All Rights Reserved *
5     * *
6     * This software is the property of ACcESS. No part of this code *
7     * may be copied in any form or by any means without the expressed written *
8     * consent of ACcESS. Copying, use or modification of this software *
9     * by any unauthorised person is illegal unless that person has a software *
10     * license agreement with ACcESS. *
11     * *
12     ******************************************************************************
13     */
14    
15 jgs 82 /**************************************************************/
16    
17     /* Finley: Mesh: NodeFile */
18    
19     /* gathers the NodeFile out from the NodeFile in using index[0:out->numNodes-1]. */
20     /* index has to be between 0 and in->numNodes-1. */
21    
22     /**************************************************************/
23    
24     /* Author: gross@access.edu.au */
25     /* Version: $Id$ */
26    
27     /**************************************************************/
28    
29     #include "NodeFile.h"
30    
31     /**************************************************************/
32    
33     void Finley_NodeFile_gather(int* index, Finley_NodeFile* in, Finley_NodeFile* out) {
34 jgs 123 dim_t i,j;
35     index_t k;
36 jgs 82 if (in->Id!=NULL) {
37     #pragma omp parallel for private(i,j,k) schedule(static)
38     for (i=0;i<out->numNodes;i++) {
39     k=index[i];
40     out->Id[i]=in->Id[k];
41     out->Tag[i]=in->Tag[k];
42     out->degreeOfFreedom[i]=in->degreeOfFreedom[k];
43     out->reducedDegreeOfFreedom[i]=in->reducedDegreeOfFreedom[k];
44     out->toReduced[i]=in->toReduced[k];
45     for(j=0;j<in->numDim;j++) out->Coordinates[INDEX2(j,i,in->numDim)]=in->Coordinates[INDEX2(j,k,in->numDim)];
46     }
47     }
48     }
49     /*
50     * $Log$
51 jgs 150 * Revision 1.3 2005/09/15 03:44:23 jgs
52     * Merge of development branch dev-02 back to main trunk on 2005-09-15
53     *
54     * Revision 1.2.2.1 2005/09/07 06:26:20 gross
55     * the solver from finley are put into the standalone package paso now
56     *
57 jgs 123 * Revision 1.2 2005/07/08 04:07:55 jgs
58     * Merge of development branch back to main trunk on 2005-07-08
59 jgs 82 *
60 jgs 123 * Revision 1.1.1.1.2.1 2005/06/29 02:34:54 gross
61     * some changes towards 64 integers in finley
62     *
63     * Revision 1.1.1.1 2004/10/26 06:53:57 jgs
64     * initial import of project esys2
65     *
66 jgs 82 * Revision 1.1.1.1 2004/06/24 04:00:40 johng
67     * Initial version of eys using boost-python.
68     *
69     *
70     */

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26