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

Annotation of /trunk-mpi-branch/paso/src/Distribution.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1016 - (hide annotations)
Thu Mar 8 06:31:28 2007 UTC (14 years, 6 months ago) by gross
File MIME type: text/plain
File size: 2057 byte(s)
MPI version compiles and starts to run now. 
Important:

   * the mpi library needs to be shared.
   * the path needs to be added to LD_LIBRARY path.

The program stucks in the matrix assemblage.


1 gross 1011 /*
2     ********************************************************************************
3     * Copyright 2006,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 bcumming 731
12 gross 1011 /**************************************************************/
13 bcumming 731
14 gross 1011 /* Paso: system matrix pattern */
15 bcumming 731
16 gross 1011 /**************************************************************/
17 bcumming 731
18 gross 1011 /* Copyrights by ACcESS Australia 2004,2005,2007 */
19     /* Author: gross@access.edu.au */
20 bcumming 731
21 gross 1011 /**************************************************************/
22 bcumming 782
23 gross 1011 #ifndef INC_PASO_DISTRIBUTION
24     #define INC_PASO_DISTRIBUTION
25 bcumming 782
26 gross 1011 #include "Common.h"
27     #include "Paso_MPI.h"
28 bcumming 782
29 bcumming 731 /****************************************************
30 gross 1011 describes the distribution of a vector stored
31     on the local process
32 bcumming 731 ****************************************************/
33 gross 1011 struct Paso_Distribution
34 bcumming 731 {
35     dim_t reference_counter;
36 gross 1011 Paso_MPIInfo *mpi_info;
37     index_t *first_component; /* process i has nodes with global indices
38     first_component[i] to first_component[i]-1. */
39     dim_t numComponents;
40     index_t firstComponent;
41     dim_t myNumComponents;
42     index_t myFirstComponent;
43 bcumming 731 };
44    
45 gross 1011 typedef struct Paso_Distribution Paso_Distribution;
46 bcumming 731
47     /***************************************
48     Function prototypes
49     ***************************************/
50    
51 gross 1011 Paso_Distribution* Paso_Distribution_alloc( Paso_MPIInfo *mpi_info, index_t* first_component, index_t m, index_t b);
52 gross 1016 void Paso_Distribution_free( Paso_Distribution *in );
53 gross 1011 Paso_Distribution* Paso_Distribution_getReference( Paso_Distribution *in );
54 bcumming 731
55     #endif

  ViewVC Help
Powered by ViewVC 1.1.26