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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4154 - (show annotations)
Tue Jan 22 09:30:23 2013 UTC (6 years, 6 months ago) by jfenwick
File MIME type: text/plain
File size: 1465 byte(s)
Round 1 of copyright fixes
1
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2013 by University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Open Software License version 3.0
9 * http://www.opensource.org/licenses/osl-3.0.php
10 *
11 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 * Development since 2012 by School of Earth Sciences
13 *
14 *****************************************************************************/
15
16 /************************************************************************************/
17
18 /* Dudley: ElementFile */
19
20 /* */
21 /* assigns new node reference numbers to elements in element file in. */
22 /* if k is the old node, the new node is newNode[k-offset]. */
23
24 /************************************************************************************/
25
26 #include "ElementFile.h"
27
28 /************************************************************************************/
29
30 void Dudley_ElementFile_relableNodes(index_t * newNode, index_t offset, Dudley_ElementFile * in)
31 {
32 dim_t i, j, NN;
33
34 if (in != NULL)
35 {
36 NN = in->numNodes;
37 #pragma omp parallel for private(j,i) schedule(static)
38 for (j = 0; j < in->numElements; j++)
39 {
40 for (i = 0; i < NN; i++)
41 {
42 in->Nodes[INDEX2(i, j, NN)] = newNode[in->Nodes[INDEX2(i, j, NN)] - offset];
43 }
44 }
45 }
46 }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26