source: XMLIO_V2/dev/common/src/xmlio/main_server.cpp @ 278

Last change on this file since 278 was 278, checked in by hozdoba, 10 years ago

Corrections

File size: 1.2 KB
Line 
1// XmlIOServer
2#include "xmlioserver.hpp"
3
4#include "attribute_template_impl.hpp"
5#include "group_template_impl.hpp"
6
7#include "client.hpp"
8#include "server.hpp"
9extern "C"
10{
11   void xios_dtreatment_start(tree::CContext * context_hdl, int filetype, int comm_client_server, int comm_server);
12   void xios_set_timestep(double ts_year, double ts_month,  double ts_day,
13                          double ts_hour, double ts_minute, double ts_second);
14   void xios_write_data_k83(const char * fieldid, int fieldid_size, double * data_k8, int data_Xsize, int data_Ysize, int data_Zsize);
15   void xios_update_calendar(int step);
16}
17// Point d'entrée du programme principal
18
19int main (int argc, char ** argv, char ** UNUSED (env))
20{
21   try
22   {
23      MPIComm comm_client, comm_client_server, comm_server;
24      CXIOSManager::Initialise (CXIOSManager::CLIENT_SERVER, &argc, &argv);
25      CMPIManager::DispatchClient(true, comm_client, comm_client_server,  comm_server);
26      CXIOSManager::RunServer("Nemo", comm_client_server, comm_server);
27      CXIOSManager::Finalize ();         
28   }
29   catch (CException & exc)
30   {
31      std::cerr << exc.getMessage () << std::endl;
32      CMPIManager::Finalize ();
33      return (EXIT_FAILURE);
34   }
35   return (EXIT_SUCCESS);
36}
37
Note: See TracBrowser for help on using the repository browser.