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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 964 - (hide annotations)
Tue Feb 13 05:10:26 2007 UTC (12 years, 9 months ago) by gross
File MIME type: text/plain
File size: 1609 byte(s)
The set/getRefVal functions of Data objects have been removed (mainly to avoid later problems with MPI).
Moreover, a faster access to the reference id of samples has been introduced. I don't think that anybody will
profit form this at this stage but it will allow a faster dump of data objects.


1 jgs 150 /*
2 elspeth 616 ************************************************************
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 jgs 150 */
12    
13 jgs 82 /**************************************************************/
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 jgs 150 /* Author: gross@access.edu.au */
24     /* Version: $Id$ */
25 jgs 82
26     /**************************************************************/
27    
28     #include "ElementFile.h"
29    
30     /**************************************************************/
31    
32 jgs 123 void Finley_ElementFile_relableNodes(index_t* newNode,index_t offset,Finley_ElementFile* in) {
33     dim_t i,j,NN;
34 jgs 82 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 gross 964 in->isPrepared=FINLEY_PREPARED;
43 jgs 82 }
44     }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26