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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2608 - (show annotations)
Tue Aug 18 01:25:18 2009 UTC (10 years, 2 months ago) by jfenwick
File MIME type: text/plain
File size: 2176 byte(s)
Updating Lutz' email

1
2 /*******************************************************
3 *
4 * Copyright (c) 2003-2009 by University of Queensland
5 * Earth Systems Science Computational Center (ESSCC)
6 * http://www.uq.edu.au/esscc
7 *
8 * Primary Business: Queensland, Australia
9 * Licensed under the Open Software License version 3.0
10 * http://www.opensource.org/licenses/osl-3.0.php
11 *
12 *******************************************************/
13
14
15 /**************************************************************/
16
17 /* Paso: system matrix pattern */
18
19 /**************************************************************/
20
21 /* Author: Lutz Gross, l.gross@uq.edu.au */
22
23 /**************************************************************/
24
25 #ifndef INC_PASO_DISTRIBUTION
26 #define INC_PASO_DISTRIBUTION
27
28 #include "Common.h"
29 #include "Paso_MPI.h"
30
31 /****************************************************
32 describes the distribution of a vector stored
33 on the local process
34 ****************************************************/
35 struct Paso_Distribution
36 {
37 index_t *first_component; /* process i has nodes with global indices first_component[i+1] to first_component[i]. */
38 dim_t reference_counter;
39 Paso_MPIInfo *mpi_info;
40 };
41
42 typedef struct Paso_Distribution Paso_Distribution;
43
44 /***************************************
45 Function prototypes
46 **************************************/
47
48
49 PASO_DLL_API
50 Paso_Distribution* Paso_Distribution_alloc( Paso_MPIInfo *mpi_info, index_t* first_component, index_t m, index_t b);
51
52 PASO_DLL_API
53 void Paso_Distribution_free( Paso_Distribution *in );
54
55 PASO_DLL_API
56 Paso_Distribution* Paso_Distribution_getReference( Paso_Distribution *in );
57
58 PASO_DLL_API
59 index_t Paso_Distribution_getFirstComponent(Paso_Distribution *in );
60
61 PASO_DLL_API
62 index_t Paso_Distribution_getLastComponent(Paso_Distribution *in );
63
64 PASO_DLL_API
65 dim_t Paso_Distribution_getGlobalNumComponents(Paso_Distribution *in );
66
67 PASO_DLL_API
68 dim_t Paso_Distribution_getMyNumComponents(Paso_Distribution *in );
69
70 PASO_DLL_API
71 dim_t Paso_Distribution_getMinGlobalComponents(Paso_Distribution *in );
72
73 PASO_DLL_API
74 dim_t Paso_Distribution_getMaxGlobalComponents(Paso_Distribution *in );
75 #endif

  ViewVC Help
Powered by ViewVC 1.1.26