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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5963 - (hide annotations)
Mon Feb 22 06:59:27 2016 UTC (3 years, 4 months ago) by caltinay
File MIME type: text/plain
File size: 1911 byte(s)
sync and fix.

1 ksteube 1313
2 jfenwick 3981 /*****************************************************************************
3 ksteube 1811 *
4 jfenwick 5863 * Copyright (c) 2003-2016 by The University of Queensland
5 jfenwick 3981 * http://www.uq.edu.au
6 ksteube 1811 *
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 jfenwick 3981 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 jfenwick 4657 * Development 2012-2013 by School of Earth Sciences
13     * Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 jfenwick 3981 *
15     *****************************************************************************/
16 ksteube 1313
17     /* */
18     /* NodeMapping provides a mapping from the local nodes typically to the degrees of freedom, */
19     /* the reduced degrees of freedom or the reduced node set */
20     /* */
21    
22 jfenwick 3086 #ifndef INC_DUDLEY_NODEMAPPING
23     #define INC_DUDLEY_NODEMAPPING
24 ksteube 1313
25 caltinay 5963 #include "Dudley.h"
26    
27 jfenwick 3227 #include "esysUtils/Esys_MPI.h"
28 ksteube 1313
29 jfenwick 3086 struct Dudley_NodeMapping {
30 jfenwick 3224 dim_t numNodes; /* number of FEM nodes */
31     index_t *target; /* target[i] defines the target if FEM node i =0,...,numNodes */
32     index_t unused; /* target[i]=unused defines that no target is defined for FEM node i */
33     dim_t numTargets; /* number of targets */
34     index_t *map; /* maps the target nodes back to the FEM nodes: target[map[i]]=i */
35     dim_t reference_counter;
36 ksteube 1313 };
37 jfenwick 3086 typedef struct Dudley_NodeMapping Dudley_NodeMapping;
38 ksteube 1313
39 caltinay 3247 Dudley_NodeMapping *Dudley_NodeMapping_alloc(dim_t numNodes, index_t *target, index_t unused);
40 jfenwick 3224 void Dudley_NodeMapping_free(Dudley_NodeMapping *);
41 caltinay 3247 Dudley_NodeMapping *Dudley_NodeMapping_getReference(Dudley_NodeMapping *in);
42 ksteube 1313
43     #endif

  ViewVC Help
Powered by ViewVC 1.1.26