2
/*******************************************************
4
* Copyright (c) 2003-2010 by University of Queensland
5
* Earth Systems Science Computational Center (ESSCC)
6
* http://www.uq.edu.au/esscc
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
12
*******************************************************/
14
/**************************************************************/
16
/* Dudley: ElementFile */
19
/* assigns new node reference numbers to elements in element file in. */
20
/* if k is the old node, the new node is newNode[k-offset]. */
22
/**************************************************************/
24
#include "ElementFile.h"
26
/**************************************************************/
28
void Dudley_ElementFile_relableNodes(index_t * newNode, index_t offset, Dudley_ElementFile * in)
35
#pragma omp parallel for private(j,i) schedule(static)
36
for (j = 0; j < in->numElements; j++)
38
for (i = 0; i < NN; i++)
40
in->Nodes[INDEX2(i, j, NN)] = newNode[in->Nodes[INDEX2(i, j, NN)] - offset];