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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1313 - (hide annotations)
Tue Sep 25 01:44:26 2007 UTC (12 years, 5 months ago) by ksteube
File MIME type: text/plain
File size: 1853 byte(s)
Copied a handful of files from trunk-mpi-branch into trunk

1 ksteube 1313
2     /* $Id: Coupler.h 1306 2007-09-18 05:51:09Z ksteube $ */
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_COUPLER
27     #define INC_PASO_COUPLER
28    
29     #include "SharedComponents.h"
30     /**************************************************************/
31    
32     typedef struct Paso_Coupler {
33    
34     dim_t block_size;
35    
36     Paso_SharedComponents* send;
37     double *send_buffer;
38     Paso_SharedComponents* recv;
39     double *recv_buffer;
40     #ifdef PASO_MPI
41     MPI_Request* mpi_requests;
42     MPI_Status* mpi_stati;
43     #else
44     void* mpi_requests;
45     void* mpi_stati;
46     #endif
47    
48     dim_t reference_counter;
49     Paso_MPIInfo *mpi_info;
50    
51     } Paso_Coupler;
52    
53    
54     Paso_Coupler* Paso_Coupler_alloc(Paso_SharedComponents * send,
55     Paso_SharedComponents* recv);
56     Paso_Coupler* Paso_Coupler_getReference(Paso_Coupler*);
57     void Paso_Coupler_free(Paso_Coupler*);
58     void Paso_Coupler_startCollect(Paso_Coupler* self, double* in);
59     double* Paso_Coupler_finishCollect(Paso_Coupler* self);
60     void Paso_Coupler_freeBuffer(Paso_Coupler* coupler);
61     void Paso_Coupler_allocBuffer(Paso_Coupler* coupler,dim_t blockSize);
62     Paso_Coupler* Paso_Coupler_unroll(Paso_Coupler* in, index_t block_size);
63    
64    
65     #endif

  ViewVC Help
Powered by ViewVC 1.1.26