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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 616 - (show annotations)
Wed Mar 22 02:46:56 2006 UTC (13 years, 6 months ago) by elspeth
File MIME type: text/plain
File size: 2200 byte(s)
Copyright added to more source files.

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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26