/[escript]/trunk-mpi-branch/finley/src/NodeMapping.h
ViewVC logotype

Contents of /trunk-mpi-branch/finley/src/NodeMapping.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1223 - (show annotations)
Fri Aug 3 02:40:39 2007 UTC (12 years, 10 months ago) by gross
File MIME type: text/plain
File size: 1855 byte(s)
first attemt towards an improved MPI version.  

1 /*
2 ************************************************************
3 * Copyright 2007 by ACcESS MNRF *
4 * *
5 * http://www.access.edu.au *
6 * Primary Business: Queensland, Australia *
7 * Licensed under the Open Software License version 3.0 *
8 * http://www.opensource.org/licenses/osl-3.0.php *
9 * *
10 ************************************************************
11 */
12 /* */
13 /* NodeMapping provides a mapping from the local nodes typically to the degrees of freedom, */
14 /* the reduced degrees of freedom or the reduced node set */
15 /* */
16
17 /* Version: $Id$ */
18
19 #ifndef INC_FINLEY_NODEMAPPING
20 #define INC_FINLEY_NODEMAPPING
21
22 #include "paso/Paso_MPI.h"
23
24
25 struct Finley_NodeMapping {
26 dim_t numNodes; /* number of FEM nodes */
27 index_t *target; /* target[i] defines the target if FEM node i =0,...,numNodes */
28 index_t unused; /* target[i]=unused defines that no target is defined for FEM node i */
29 dim_t numTargets; /* number of targets */
30 index_t *map; /* maps the target nodes back to the FEM nodes: target[map[i]]=i */
31 dim_t reference_counter;
32 };
33 typedef struct Finley_NodeMapping Finley_NodeMapping;
34
35 Finley_NodeMapping* Finley_NodeMapping_alloc(dim_t numNodes, index_t* target, index_t unused);
36 void Finley_NodeMapping_free(Finley_NodeMapping*);
37 Finley_NodeMapping* NodeMapping_getReference(Finley_NodeMapping *in );
38
39 #endif

  ViewVC Help
Powered by ViewVC 1.1.26