/[escript]/branches/arrayview_from_1695_trunk/finley/src/ElementFile_relableNodes.c
ViewVC logotype

Annotation of /branches/arrayview_from_1695_trunk/finley/src/ElementFile_relableNodes.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1696 - (hide annotations)
Mon Aug 11 03:33:40 2008 UTC (10 years, 11 months ago) by jfenwick
File MIME type: text/plain
File size: 1324 byte(s)
Branching to perform experiments on removing DataArrayView

1 jgs 150
2 ksteube 1312 /* $Id$ */
3    
4     /*******************************************************
5     *
6     * Copyright 2003-2007 by ACceSS MNRF
7     * Copyright 2007 by University of Queensland
8     *
9     * http://esscc.uq.edu.au
10     * Primary Business: Queensland, Australia
11     * Licensed under the Open Software License version 3.0
12     * http://www.opensource.org/licenses/osl-3.0.php
13     *
14     *******************************************************/
15    
16 jgs 82 /**************************************************************/
17    
18     /* Finley: 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 jgs 123 void Finley_ElementFile_relableNodes(index_t* newNode,index_t offset,Finley_ElementFile* in) {
31     dim_t i,j,NN;
32 jgs 82 if (in!=NULL) {
33     NN=in->ReferenceElement->Type->numNodes;
34     #pragma omp parallel for private(j,i) schedule(static)
35     for (j=0;j<in->numElements;j++) {
36     for (i=0;i<NN;i++) {
37     in->Nodes[INDEX2(i,j,NN)]=newNode[in->Nodes[INDEX2(i,j,NN)]-offset];
38     }
39     }
40     }
41     }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26