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

Last change on this file since 490 was 490, checked in by mhnguyen, 7 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
RevLine 
[342]1#ifndef __CLIENT_HPP__
2#define __CLIENT_HPP__
[300]3
4#include "xmlioserver_spl.hpp"
[382]5#include "mpi.hpp"
[300]6
[335]7namespace xios
[490]8{
[300]9    class CClient
10    {
11       public:
[490]12
[300]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 ;
[490]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
[300]36    } ;
37}
38
39#endif
Note: See TracBrowser for help on using the repository browser.