/[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 1811 - (show annotations)
Thu Sep 25 23:11:13 2008 UTC (10 years, 11 months ago) by ksteube
File MIME type: text/plain
File size: 1289 byte(s)
Copyright updated in all files

1
2 /*******************************************************
3 *
4 * Copyright (c) 2003-2008 by University of Queensland
5 * Earth Systems Science Computational Center (ESSCC)
6 * http://www.uq.edu.au/esscc
7 *
8 * Primary Business: Queensland, Australia
9 * Licensed under the Open Software License version 3.0
10 * http://www.opensource.org/licenses/osl-3.0.php
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 #include "ElementFile.h"
26
27 /**************************************************************/
28
29 void Finley_ElementFile_relableNodes(index_t* newNode,index_t offset,Finley_ElementFile* in) {
30 dim_t i,j,NN;
31 if (in!=NULL) {
32 NN=in->ReferenceElement->Type->numNodes;
33 #pragma omp parallel for private(j,i) schedule(static)
34 for (j=0;j<in->numElements;j++) {
35 for (i=0;i<NN;i++) {
36 in->Nodes[INDEX2(i,j,NN)]=newNode[in->Nodes[INDEX2(i,j,NN)]-offset];
37 }
38 }
39 }
40 }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26