New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
buffer_client.hpp in vendors/XIOS/current/src – NEMO

source: vendors/XIOS/current/src/buffer_client.hpp @ 3428

Last change on this file since 3428 was 3428, checked in by rblod, 12 years ago

importing initial XIOS vendor drop

File size: 713 bytes
Line 
1#ifndef __BUFFER_CLIENT_HPP__
2#define __BUFFER_CLIENT_HPP__
3
4#include "xmlioserver_spl.hpp"
5#include "buffer_out.hpp"
6#include <mpi.h>
7
8namespace xios
9{
10  class CClientBuffer
11  {
12   
13    public:
14   
15    CClientBuffer(MPI_Comm intercomm,int serverRank) ;
16    ~CClientBuffer() ;
17    bool isBufferFree(int size) ;
18    CBufferOut*  getBuffer(int size) ;   
19    bool checkBuffer(void) ;
20    bool hasPendingRequest(void) ;
21   
22    char* buffer[2] ;
23    int remain(void) ;
24
25    int current ;
26    int count ;
27    int bufferSize ;
28    int serverRank ;
29    bool pending ;
30   
31    size_t bufferSizeByServer ;
32   
33    MPI_Request request ;
34   
35    CBufferOut* retBuffer;   
36    MPI_Comm interComm ;
37  } ;
38
39}
40
41#endif
42
Note: See TracBrowser for help on using the repository browser.