/[escript]/trunk/dudley/src/NodeMapping.h
ViewVC logotype

Annotation of /trunk/dudley/src/NodeMapping.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3259 - (hide annotations)
Mon Oct 11 01:48:14 2010 UTC (9 years, 4 months ago) by jfenwick
File MIME type: text/plain
File size: 1699 byte(s)
Merging dudley and scons updates from branches

1 ksteube 1313
2     /*******************************************************
3 ksteube 1811 *
4 jfenwick 2881 * Copyright (c) 2003-2010 by University of Queensland
5 ksteube 1811 * 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 ksteube 1313
14     /* */
15     /* NodeMapping provides a mapping from the local nodes typically to the degrees of freedom, */
16     /* the reduced degrees of freedom or the reduced node set */
17     /* */
18    
19 jfenwick 3086 #ifndef INC_DUDLEY_NODEMAPPING
20     #define INC_DUDLEY_NODEMAPPING
21 ksteube 1313
22 jfenwick 3227 #include "esysUtils/Esys_MPI.h"
23 ksteube 1313
24 jfenwick 3086 struct Dudley_NodeMapping {
25 jfenwick 3224 dim_t numNodes; /* number of FEM nodes */
26     index_t *target; /* target[i] defines the target if FEM node i =0,...,numNodes */
27     index_t unused; /* target[i]=unused defines that no target is defined for FEM node i */
28     dim_t numTargets; /* number of targets */
29     index_t *map; /* maps the target nodes back to the FEM nodes: target[map[i]]=i */
30     dim_t reference_counter;
31 ksteube 1313 };
32 jfenwick 3086 typedef struct Dudley_NodeMapping Dudley_NodeMapping;
33 ksteube 1313
34 caltinay 3247 Dudley_NodeMapping *Dudley_NodeMapping_alloc(dim_t numNodes, index_t *target, index_t unused);
35 jfenwick 3224 void Dudley_NodeMapping_free(Dudley_NodeMapping *);
36 caltinay 3247 Dudley_NodeMapping *Dudley_NodeMapping_getReference(Dudley_NodeMapping *in);
37 ksteube 1313
38     #endif

  ViewVC Help
Powered by ViewVC 1.1.26