/[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 5963 - (show annotations)
Mon Feb 22 06:59:27 2016 UTC (3 years, 3 months ago) by caltinay
File MIME type: text/plain
File size: 1911 byte(s)
sync and fix.

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 /* */
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 #ifndef INC_DUDLEY_NODEMAPPING
23 #define INC_DUDLEY_NODEMAPPING
24
25 #include "Dudley.h"
26
27 #include "esysUtils/Esys_MPI.h"
28
29 struct Dudley_NodeMapping {
30 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 };
37 typedef struct Dudley_NodeMapping Dudley_NodeMapping;
38
39 Dudley_NodeMapping *Dudley_NodeMapping_alloc(dim_t numNodes, index_t *target, index_t unused);
40 void Dudley_NodeMapping_free(Dudley_NodeMapping *);
41 Dudley_NodeMapping *Dudley_NodeMapping_getReference(Dudley_NodeMapping *in);
42
43 #endif

  ViewVC Help
Powered by ViewVC 1.1.26