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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1562 - (hide annotations)
Wed May 21 13:04:40 2008 UTC (11 years, 9 months ago) by gross
File MIME type: text/plain
File size: 2420 byte(s)
The algebraic upwinding with MPI. The case of boundary constraint needs still some attention. 


1 ksteube 1313
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 gross 1562 dim_t local_length; /* local array length shared */
37    
38 ksteube 1313 dim_t numNeighbors; /* number of processor sharing values with this processor */
39    
40     index_t* offsetInShared; /* offsetInSharedInput[i] points to the first input value in array shared
41     for processor i. Has length numNeighbors+1 */
42    
43     Paso_MPI_rank* neighbor; /* list of the processor sharing values with this processor */
44    
45     index_t* shared; /* list of the (local) componets which is shared with other
46     processors. Has length numSharedComponents */
47    
48     dim_t numSharedComponents; /* = offsetInShared[numNeighbors] */
49    
50     Paso_MPIInfo *mpi_info;
51     dim_t reference_counter;
52    
53     } Paso_SharedComponents;
54    
55    
56 gross 1562 Paso_SharedComponents* Paso_SharedComponents_alloc(dim_t local_length,
57     dim_t numNeighbors,
58 ksteube 1313 Paso_MPI_rank* neighbor,
59     index_t* shared,
60     index_t* offsetInShared,
61     index_t m, index_t b,
62     Paso_MPIInfo *mpi_info);
63    
64     Paso_SharedComponents* Paso_SharedComponents_getReference(Paso_SharedComponents*);
65     void Paso_SharedComponents_free(Paso_SharedComponents*);
66    
67     #endif

  ViewVC Help
Powered by ViewVC 1.1.26