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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1811 - (show annotations)
Thu Sep 25 23:11:13 2008 UTC (11 years, 1 month ago) by ksteube
File MIME type: text/plain
File size: 2040 byte(s)
Copyright updated in all files

1
2 /*******************************************************
3 *
4 * Copyright (c) 2003-2008 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: gross@access.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 Paso_Distribution* Paso_Distribution_alloc( Paso_MPIInfo *mpi_info, index_t* first_component, index_t m, index_t b);
49 void Paso_Distribution_free( Paso_Distribution *in );
50 Paso_Distribution* Paso_Distribution_getReference( Paso_Distribution *in );
51 index_t Paso_Distribution_getFirstComponent(Paso_Distribution *in );
52 index_t Paso_Distribution_getLastComponent(Paso_Distribution *in );
53 dim_t Paso_Distribution_getGlobalNumComponents(Paso_Distribution *in );
54 dim_t Paso_Distribution_getMyNumComponents(Paso_Distribution *in );
55 dim_t Paso_Distribution_getMinGlobalComponents(Paso_Distribution *in );
56 dim_t Paso_Distribution_getMaxGlobalComponents(Paso_Distribution *in );
57 #endif

  ViewVC Help
Powered by ViewVC 1.1.26