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.
server.hpp in vendors/XIOS/current/src – NEMO

source: vendors/XIOS/current/src/server.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: 1.0 KB
Line 
1#ifndef __SERVER_HPP__
2#define __SERVER_HPP__
3
4#include "xmlioserver_spl.hpp"
5#include "context.hpp"
6#include <mpi.h>
7
8namespace xios
9{
10    class CServer
11    {
12       public:
13       
14       static void initialize(void) ;
15       static void finalize(void) ;
16       static void eventLoop(void) ;
17       static void contextEventLoop(void) ;
18       static void listenContext(void) ;
19       static void listenFinalize(void) ;
20       static void recvContextMessage(void* buff,int count) ;
21       static void listenRootContext(void) ;
22       static void listenRootFinalize(void) ;
23       static void registerContext(void* buff,int count, int leaderRank=0) ;
24       
25       static MPI_Comm intraComm ;
26       static list<MPI_Comm> interComm ;
27
28       struct contextMessage
29       {
30         int nbRecv ;
31         int leaderRank ;
32       } ;
33       
34      static bool isRoot ;
35      static int rank ;
36      static map<string,CContext*> contextList ;
37      static bool finished ;
38      static bool is_MPI_Initialized ;
39    } ;
40}
41
42#endif
Note: See TracBrowser for help on using the repository browser.