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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3086 - (hide annotations)
Thu Aug 5 05:07:58 2010 UTC (9 years, 6 months ago) by jfenwick
Original Path: branches/domexper/dudley/src/NodeMapping.h
File MIME type: text/plain
File size: 1675 byte(s)
Another pass at removing finley

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

  ViewVC Help
Powered by ViewVC 1.1.26