Changeset 1853 for XIOS/dev/dev_ym/XIOS_COUPLING/src/node/axis.cpp
- Timestamp:
- 01/20/20 17:55:12 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/node/axis.cpp
r1787 r1853 319 319 { 320 320 // 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) 322 322 { 323 323 StdSize true_size = value.numElements(); … … 333 333 this->checkBounds(); 334 334 335 if (context-> hasClient)335 if (context->getServiceType()==CServicesManager::CLIENT || context->getServiceType()==CServicesManager::GATHERER) 336 336 { 337 337 this->checkMask(); … … 512 512 513 513 CContext* context=CContext::getCurrent(); 514 if (context-> hasClient && !context->hasServer) this->checkAttributes();514 if (context->getServiceType()==CServicesManager::CLIENT) this->checkAttributes(); 515 515 516 516 this->areClientAttributesChecked_ = true; … … 529 529 530 530 if (this->isClientAfterTransformationChecked) return; 531 if (context-> hasClient)531 if (context->getServiceType()==CServicesManager::CLIENT || context->getServiceType()==CServicesManager::GATHERER) 532 532 { 533 533 if (orderPositionInGrid == CServerDistributionDescription::defaultDistributedDimension(globalDim.size(), distType)) … … 556 556 557 557 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); 559 559 560 560 this->isChecked = true; … … 734 734 735 735 CContext* context=CContext::getCurrent(); 736 CContextServer* server = context->server;737 736 738 737 // We describe the distribution of client (server) on which data are written … … 742 741 nBeginGlobal[0] = 0; 743 742 nGlob[0] = n_glo; 744 CDistributionServer srvDist( server->intraCommSize, nBegin, nSize, nBeginGlobal, nGlob);743 CDistributionServer srvDist(context->intraCommSize_, nBegin, nSize, nBeginGlobal, nGlob); 745 744 const CArray<size_t,1>& writtenGlobalIndex = srvDist.getGlobalIndex(); 746 745 … … 784 783 size_t nbWritten = 0, indGlo; 785 784 CContext* context=CContext::getCurrent(); 786 CContextServer* server = context->server; 787 785 788 786 // We describe the distribution of client (server) on which data are written 789 787 std::vector<int> nBegin(1), nSize(1), nBeginGlobal(1), nGlob(1); … … 792 790 nBeginGlobal[0] = 0; 793 791 nGlob[0] = n_glo; 794 CDistributionServer srvDist( server->intraCommSize, nBegin, nSize, nBeginGlobal, nGlob);792 CDistributionServer srvDist(context->intraCommSize_, nBegin, nSize, nBeginGlobal, nGlob); 795 793 const CArray<size_t,1>& writtenGlobalIndex = srvDist.getGlobalIndex(); 796 794 std::unordered_map<size_t,size_t>::const_iterator itb = globalLocalIndexMap_.begin(),
Note: See TracChangeset
for help on using the changeset viewer.