Escript  Revision_4320
dudley/src/NodeMapping.h
Go to the documentation of this file.
1 
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2013 by 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 since 2012 by School of Earth Sciences
13 *
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 
21 #ifndef INC_DUDLEY_NODEMAPPING
22 #define INC_DUDLEY_NODEMAPPING
23 
24 #include "esysUtils/Esys_MPI.h"
25 
27  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 */
33 };
35 
39 
40 #endif