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/axis.cpp

    r1787 r1853  
    319319      { 
    320320        // Avoid this check at writing because it fails in case of a hole 
    321         if (context->hasClient) 
     321        if (context->getServiceType()==CServicesManager::CLIENT || context->getServiceType()==CServicesManager::GATHERER) 
    322322        { 
    323323          StdSize true_size = value.numElements(); 
     
    333333      this->checkBounds(); 
    334334 
    335       if (context->hasClient) 
     335      if (context->getServiceType()==CServicesManager::CLIENT || context->getServiceType()==CServicesManager::GATHERER) 
    336336      { 
    337337        this->checkMask(); 
     
    512512 
    513513     CContext* context=CContext::getCurrent(); 
    514      if (context->hasClient && !context->hasServer) this->checkAttributes(); 
     514     if (context->getServiceType()==CServicesManager::CLIENT) this->checkAttributes(); 
    515515 
    516516     this->areClientAttributesChecked_ = true; 
     
    529529 
    530530     if (this->isClientAfterTransformationChecked) return; 
    531      if (context->hasClient) 
     531     if (context->getServiceType()==CServicesManager::CLIENT || context->getServiceType()==CServicesManager::GATHERER) 
    532532     {         
    533533       if (orderPositionInGrid == CServerDistributionDescription::defaultDistributedDimension(globalDim.size(), distType)) 
     
    556556 
    557557     if (this->isChecked) return; 
    558      if (context->hasClient) sendAttributes(globalDim, orderPositionInGrid, distType);     
     558     if (context->getServiceType()==CServicesManager::CLIENT || context->getServiceType()==CServicesManager::GATHERER) sendAttributes(globalDim, orderPositionInGrid, distType);     
    559559 
    560560     this->isChecked = true; 
     
    734734 
    735735    CContext* context=CContext::getCurrent();       
    736     CContextServer* server = context->server;  
    737736 
    738737    // We describe the distribution of client (server) on which data are written 
     
    742741    nBeginGlobal[0] = 0;  
    743742    nGlob[0]        = n_glo; 
    744     CDistributionServer srvDist(server->intraCommSize, nBegin, nSize, nBeginGlobal, nGlob);  
     743    CDistributionServer srvDist(context->intraCommSize_, nBegin, nSize, nBeginGlobal, nGlob);  
    745744    const CArray<size_t,1>& writtenGlobalIndex  = srvDist.getGlobalIndex(); 
    746745 
     
    784783      size_t nbWritten = 0, indGlo; 
    785784      CContext* context=CContext::getCurrent();       
    786       CContextServer* server = context->server;  
    787  
     785  
    788786      // We describe the distribution of client (server) on which data are written 
    789787      std::vector<int> nBegin(1), nSize(1), nBeginGlobal(1), nGlob(1); 
     
    792790      nBeginGlobal[0] = 0;  
    793791      nGlob[0]        = n_glo; 
    794       CDistributionServer srvDist(server->intraCommSize, nBegin, nSize, nBeginGlobal, nGlob);  
     792      CDistributionServer srvDist(context->intraCommSize_, nBegin, nSize, nBeginGlobal, nGlob);  
    795793      const CArray<size_t,1>& writtenGlobalIndex  = srvDist.getGlobalIndex(); 
    796794      std::unordered_map<size_t,size_t>::const_iterator itb = globalLocalIndexMap_.begin(), 
Note: See TracChangeset for help on using the changeset viewer.