Changeset 1853 for XIOS/dev/dev_ym/XIOS_COUPLING/src/node/domain.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/domain.cpp
r1787 r1853 1727 1727 1728 1728 if (this->isClientAfterTransformationChecked) return; 1729 if (context-> hasClient)1729 if (context->getServiceType()==CServicesManager::CLIENT || context->getServiceType()==CServicesManager::GATHERER) 1730 1730 { 1731 1731 this->computeConnectedClients(); 1732 1732 if (hasLonLat) 1733 if ( !context->hasServer)1733 if (context->getServiceType()==CServicesManager::CLIENT) 1734 1734 this->completeLonLatClient(); 1735 1735 } … … 1748 1748 CContext* context=CContext::getCurrent(); 1749 1749 1750 if (context-> hasClient && !context->hasServer)1750 if (context->getServiceType()==CServicesManager::CLIENT) 1751 1751 { 1752 1752 this->checkDomain(); … … 1756 1756 } 1757 1757 1758 if (context-> hasClient && !context->hasServer)1758 if (context->getServiceType()==CServicesManager::CLIENT) 1759 1759 { // Ct client uniquement 1760 1760 this->checkMask(); … … 1780 1780 1781 1781 if (this->isChecked) return; 1782 if (context-> hasClient)1782 if (context->getServiceType()==CServicesManager::CLIENT || context->getServiceType()==CServicesManager::GATHERER) 1783 1783 { 1784 1784 sendAttributes(); … … 1799 1799 this->checkArea(); 1800 1800 1801 if (context-> hasClient)1801 if (context->getServiceType()==CServicesManager::CLIENT || context->getServiceType()==CServicesManager::GATHERER) 1802 1802 { // Ct client uniquement 1803 1803 this->checkMask(); … … 1811 1811 } 1812 1812 1813 if (context-> hasClient)1813 if (context->getServiceType()==CServicesManager::CLIENT || context->getServiceType()==CServicesManager::GATHERER) 1814 1814 { 1815 1815 this->computeConnectedClients(); … … 1972 1972 1973 1973 CContext* context=CContext::getCurrent(); 1974 CContextServer* server = context->server;1975 1974 1976 1975 std::vector<int> nBegin(2), nSize(2), nBeginGlobal(2), nGlob(2); … … 1979 1978 nBeginGlobal[0] = 0; nBeginGlobal[1] = 0; 1980 1979 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); 1982 1981 const CArray<size_t,1>& writtenGlobalIndex = srvDist.getGlobalIndex(); 1983 1982 … … 2018 2017 size_t nbWritten = 0, indGlo; 2019 2018 CContext* context=CContext::getCurrent(); 2020 CContextServer* server = context->server;2021 2019 2022 2020 std::vector<int> nBegin(2), nSize(2), nBeginGlobal(2), nGlob(2); … … 2025 2023 nBeginGlobal[0] = 0; nBeginGlobal[1] = 0; 2026 2024 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); 2028 2026 const CArray<size_t,1>& writtenGlobalIndex = srvDist.getGlobalIndex(); 2029 2027
Note: See TracChangeset
for help on using the changeset viewer.