Ignore:
Timestamp:
11/16/16 18:00:52 (7 years ago)
Author:
oabramkina
Message:

First rebond on the secondary server pool. XIOS finalizes correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_olga/src/node/context.cpp

    r987 r992  
    1515#include "xios_spl.hpp" 
    1616 
     17#include "server.hpp" 
    1718 
    1819namespace xios { 
     
    252253     { 
    253254       clientPrimServer = new CContextClient(this, intraComm, interComm); 
    254        serverPrimServer = new CContextServer(this, intraComm, interComm); 
     255       serverPrimServer = new CContextServer(this, 1, intraComm, interComm);  // just some int parameter to distinguish server from serverPrimServer on server1 
    255256     } 
    256257 
     
    414415      { 
    415416        finalized = true; 
    416         if (hasClient) sendRegistry() ; 
     417//        if (hasClient) sendRegistry() ; 
    417418 
    418419/*        if (CXios::serverLevel == 0) 
     
    446447        }*/ 
    447448 
    448         client->finalize(); 
    449         while (!server->hasFinished()) 
    450         { 
    451           server->eventLoop(); 
    452         } 
    453  
    454449        if ((hasClient) && (hasServer)) 
    455450        { 
     
    458453          { 
    459454            serverPrimServer->eventLoop(); 
     455            CServer::eventScheduler->checkEvent() ; 
    460456          } 
    461457        } 
     458 
     459        client->finalize(); 
     460        while (!server->hasFinished()) 
     461        { 
     462          server->eventLoop(); 
     463        } 
     464 
    462465 
    463466        if (hasServer) 
     
    10561059      this->solveAllInheritance(); 
    10571060 
    1058       ShowTree(info(10)); 
     1061//      ShowTree(info(10)); 
    10591062 
    10601063      // Check if some axis, domains or grids are eligible to for compressed indexed output. 
Note: See TracChangeset for help on using the changeset viewer.