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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 201 - (show annotations)
Wed Nov 23 04:10:21 2005 UTC (13 years, 8 months ago) by jgs
File MIME type: text/plain
File size: 2522 byte(s)
copy finleyC and CPPAdapter to finley and finley/CPPAdapter to
facilitate scons builds

1 /*
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 /**************************************************************/
16
17 /* Finley: ElementFile */
18
19 /* */
20 /* assigns new node reference numbers to elements in element file in. */
21 /* if k is the old node, the new node is newNode[k-offset]. */
22
23 /**************************************************************/
24
25 /* Author: gross@access.edu.au */
26 /* Version: $Id$ */
27
28 /**************************************************************/
29
30 #include "ElementFile.h"
31
32 /**************************************************************/
33
34 void Finley_ElementFile_relableNodes(index_t* newNode,index_t offset,Finley_ElementFile* in) {
35 dim_t i,j,NN;
36 if (in!=NULL) {
37 NN=in->ReferenceElement->Type->numNodes;
38 #pragma omp parallel for private(j,i) schedule(static)
39 for (j=0;j<in->numElements;j++) {
40 for (i=0;i<NN;i++) {
41 in->Nodes[INDEX2(i,j,NN)]=newNode[in->Nodes[INDEX2(i,j,NN)]-offset];
42 }
43 }
44 }
45 }
46 /*
47 * $Log$
48 * Revision 1.3 2005/09/15 03:44:22 jgs
49 * Merge of development branch dev-02 back to main trunk on 2005-09-15
50 *
51 * Revision 1.2.2.1 2005/09/07 06:26:18 gross
52 * the solver from finley are put into the standalone package paso now
53 *
54 * Revision 1.2 2005/07/08 04:07:50 jgs
55 * Merge of development branch back to main trunk on 2005-07-08
56 *
57 * Revision 1.1.1.1.2.1 2005/06/29 02:34:50 gross
58 * some changes towards 64 integers in finley
59 *
60 * Revision 1.1.1.1 2004/10/26 06:53:57 jgs
61 * initial import of project esys2
62 *
63 * Revision 1.1.1.1 2004/06/24 04:00:40 johng
64 * Initial version of eys using boost-python.
65 *
66 *
67 */

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26