source: XIOS/trunk/src/client.hpp @ 491

Last change on this file since 491 was 490, checked in by mhnguyen, 10 years ago

Implementing print output in seperate files

+) Add an option to write information into standard output or into files,
each of which is created by a process
+) Add a new file for global data (constant, value macro, etc)
+) Do a minor change in how to generate doxygen

Test
+) On Curie, with two modes: only client (connected) and client-server
+) All tests passed, each client prints out its info in a seperate file

File size: 797 bytes
Line 
1#ifndef __CLIENT_HPP__
2#define __CLIENT_HPP__
3
4#include "xmlioserver_spl.hpp"
5#include "mpi.hpp"
6
7namespace xios
8{
9    class CClient
10    {
11       public:
12
13       static void initialize(const string& codeId,MPI_Comm& localComm,MPI_Comm& returnComm) ;
14       static void finalize(void) ;
15       static void registerContext(const string& id,MPI_Comm contextComm) ;
16
17       static MPI_Comm intraComm ;
18       static MPI_Comm interComm ;
19       static int serverLeader;
20       static bool is_MPI_Initialized ;
21
22       public:
23        static int getRank();
24
25        static void openInfoStream(const StdString& fileName);
26
27        static void openInfoStream();
28
29        static void closeInfoStream();
30
31       protected:
32       static int rank;
33       static StdOFStream m_infoStream;
34
35
36    } ;
37}
38
39#endif
Note: See TracBrowser for help on using the repository browser.