Ignore:
Timestamp:
01/20/20 17:55:12 (4 years ago)
Author:
ymipsl
Message:

Coupling branch : replace hasServer and hasClient combination by the name of correct service : CLIENT, GATHERER or OUT_SERVER.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/domain.cpp

    r1787 r1853  
    17271727 
    17281728     if (this->isClientAfterTransformationChecked) return; 
    1729      if (context->hasClient) 
     1729     if (context->getServiceType()==CServicesManager::CLIENT || context->getServiceType()==CServicesManager::GATHERER) 
    17301730     { 
    17311731      this->computeConnectedClients(); 
    17321732       if (hasLonLat) 
    1733          if (!context->hasServer) 
     1733         if (context->getServiceType()==CServicesManager::CLIENT) 
    17341734           this->completeLonLatClient(); 
    17351735     } 
     
    17481748     CContext* context=CContext::getCurrent(); 
    17491749 
    1750       if (context->hasClient && !context->hasServer) 
     1750      if (context->getServiceType()==CServicesManager::CLIENT) 
    17511751      { 
    17521752        this->checkDomain(); 
     
    17561756      } 
    17571757 
    1758       if (context->hasClient && !context->hasServer) 
     1758      if (context->getServiceType()==CServicesManager::CLIENT) 
    17591759      { // Ct client uniquement 
    17601760         this->checkMask(); 
     
    17801780 
    17811781     if (this->isChecked) return; 
    1782      if (context->hasClient) 
     1782     if (context->getServiceType()==CServicesManager::CLIENT || context->getServiceType()==CServicesManager::GATHERER) 
    17831783     { 
    17841784       sendAttributes(); 
     
    17991799      this->checkArea(); 
    18001800 
    1801       if (context->hasClient) 
     1801      if (context->getServiceType()==CServicesManager::CLIENT || context->getServiceType()==CServicesManager::GATHERER) 
    18021802      { // Ct client uniquement 
    18031803         this->checkMask(); 
     
    18111811      } 
    18121812 
    1813       if (context->hasClient) 
     1813      if (context->getServiceType()==CServicesManager::CLIENT || context->getServiceType()==CServicesManager::GATHERER) 
    18141814      { 
    18151815        this->computeConnectedClients(); 
     
    19721972 
    19731973      CContext* context=CContext::getCurrent();       
    1974       CContextServer* server = context->server;   
    19751974 
    19761975      std::vector<int> nBegin(2), nSize(2), nBeginGlobal(2), nGlob(2); 
     
    19791978      nBeginGlobal[0] = 0; nBeginGlobal[1] = 0; 
    19801979      nGlob[0]        = ni_glo;   nGlob[1] = nj_glo; 
    1981       CDistributionServer srvDist(server->intraCommSize, nBegin, nSize, nBeginGlobal, nGlob);  
     1980      CDistributionServer srvDist(context->intraCommSize_, nBegin, nSize, nBeginGlobal, nGlob);  
    19821981      const CArray<size_t,1>& writtenGlobalIndex  = srvDist.getGlobalIndex(); 
    19831982 
     
    20182017      size_t nbWritten = 0, indGlo; 
    20192018      CContext* context=CContext::getCurrent();       
    2020       CContextServer* server = context->server;   
    20212019 
    20222020      std::vector<int> nBegin(2), nSize(2), nBeginGlobal(2), nGlob(2); 
     
    20252023      nBeginGlobal[0] = 0; nBeginGlobal[1] = 0; 
    20262024      nGlob[0]        = ni_glo;   nGlob[1] = nj_glo; 
    2027       CDistributionServer srvDist(server->intraCommSize, nBegin, nSize, nBeginGlobal, nGlob);  
     2025      CDistributionServer srvDist(context->intraCommSize_, nBegin, nSize, nBeginGlobal, nGlob);  
    20282026      const CArray<size_t,1>& writtenGlobalIndex  = srvDist.getGlobalIndex(); 
    20292027 
Note: See TracChangeset for help on using the changeset viewer.