/[escript]/trunk/paso/src/SharedComponents.h
ViewVC logotype

Contents of /trunk/paso/src/SharedComponents.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1388 - (show annotations)
Fri Jan 11 07:45:58 2008 UTC (11 years, 8 months ago) by trankine
File MIME type: text/plain
File size: 2287 byte(s)
And get the *(&(*&(* name right
1
2 /* $Id$ */
3
4 /*******************************************************
5 *
6 * Copyright 2003-2007 by ACceSS MNRF
7 * Copyright 2007 by University of Queensland
8 *
9 * http://esscc.uq.edu.au
10 * Primary Business: Queensland, Australia
11 * Licensed under the Open Software License version 3.0
12 * http://www.opensource.org/licenses/osl-3.0.php
13 *
14 *******************************************************/
15
16 /**************************************************************/
17
18 /* Paso: coupler */
19
20 /**************************************************************/
21
22 /* Author: gross@access.edu.au */
23
24 /**************************************************************/
25
26 #ifndef INC_PASO_SHAREDCOMPONENTS
27 #define INC_PASO_SHAREDCOMPONENTS
28
29 #include "Paso_MPI.h"
30 #include "Common.h"
31
32 /**************************************************************/
33
34 typedef struct Paso_SharedComponents {
35
36 dim_t numNeighbors; /* number of processor sharing values with this processor */
37
38 index_t* offsetInShared; /* offsetInSharedInput[i] points to the first input value in array shared
39 for processor i. Has length numNeighbors+1 */
40
41 Paso_MPI_rank* neighbor; /* list of the processor sharing values with this processor */
42
43 index_t* shared; /* list of the (local) componets which is shared with other
44 processors. Has length numSharedComponents */
45
46 dim_t numSharedComponents; /* = offsetInShared[numNeighbors] */
47
48 Paso_MPIInfo *mpi_info;
49 dim_t reference_counter;
50
51 } Paso_SharedComponents;
52
53
54 Paso_SharedComponents* Paso_SharedComponents_alloc(dim_t numNeighbors,
55 Paso_MPI_rank* neighbor,
56 index_t* shared,
57 index_t* offsetInShared,
58 index_t m, index_t b,
59 Paso_MPIInfo *mpi_info);
60
61 Paso_SharedComponents* Paso_SharedComponents_getReference(Paso_SharedComponents*);
62 void Paso_SharedComponents_free(Paso_SharedComponents*);
63
64 #endif

  ViewVC Help
Powered by ViewVC 1.1.26