/[escript]/branches/trilinos_from_5897/dudley/src/NodeMapping.h
ViewVC logotype

Contents of /branches/trilinos_from_5897/dudley/src/NodeMapping.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6009 - (show annotations)
Wed Mar 2 04:13:26 2016 UTC (3 years, 1 month ago) by caltinay
File MIME type: text/plain
File size: 1679 byte(s)
Much needed sync with trunk...

1
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2016 by The University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Open Software License version 3.0
9 * http://www.opensource.org/licenses/osl-3.0.php
10 *
11 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 * Development 2012-2013 by School of Earth Sciences
13 * Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 *
15 *****************************************************************************/
16
17 /* NodeMapping provides a mapping from the local nodes typically to the degrees of freedom, */
18 /* the reduced degrees of freedom or the reduced node set */
19
20 #ifndef __DUDLEY_NODEMAPPING_H__
21 #define __DUDLEY_NODEMAPPING_H__
22
23 #include "Dudley.h"
24
25 namespace dudley {
26
27 struct Dudley_NodeMapping {
28 dim_t numNodes; /* number of FEM nodes */
29 index_t *target; /* target[i] defines the target if FEM node i =0,...,numNodes */
30 index_t unused; /* target[i]=unused defines that no target is defined for FEM node i */
31 dim_t numTargets; /* number of targets */
32 index_t *map; /* maps the target nodes back to the FEM nodes: target[map[i]]=i */
33 dim_t reference_counter;
34 };
35 typedef struct Dudley_NodeMapping Dudley_NodeMapping;
36
37 Dudley_NodeMapping *Dudley_NodeMapping_alloc(dim_t numNodes, index_t *target, index_t unused);
38 void Dudley_NodeMapping_free(Dudley_NodeMapping *);
39 Dudley_NodeMapping *Dudley_NodeMapping_getReference(Dudley_NodeMapping *in);
40
41 } // namespace dudley
42
43 #endif // __DUDLEY_NODEMAPPING_H__
44

  ViewVC Help
Powered by ViewVC 1.1.26