Changeset 1340
- Timestamp:
- 11/21/17 14:08:25 (7 years ago)
- Location:
- XIOS/dev/XIOS_DEV_CMIP6/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/XIOS_DEV_CMIP6/src/distribution_client.cpp
r1311 r1340 30 30 CDistributionClient::~CDistributionClient() 31 31 { /* Nothing to do */ } 32 33 void CDistributionClient::partialClear() 34 { 35 GlobalLocalMap void1 ; 36 GlobalLocalMap void2 ; 37 std::vector<int> void3 ; 38 std::vector<int> void4 ; 39 40 globalLocalDataSendToServerMap_.swap(void1) ; 41 globalDataIndex_.swap(void2) ; 42 localDataIndex_.swap(void3); 43 localMaskIndex_.swap(void4) ; 44 } 32 45 33 46 /*! -
XIOS/dev/XIOS_DEV_CMIP6/src/distribution_client.hpp
r1250 r1340 56 56 const int& dataDim, const int& ni, int& j); 57 57 static int getAxisIndex(const int& dataIndex, const int& dataBegin, const int& ni); 58 59 void partialClear(void) ; //! clear heavy sized attibutes 58 60 59 61 protected: -
XIOS/dev/XIOS_DEV_CMIP6/src/distribution_server.cpp
r1202 r1340 229 229 return nZoomSize_; 230 230 } 231 232 void CDistributionServer::partialClear(void) 233 { 234 GlobalLocalMap void1 ; 235 globalLocalIndexMap_.swap(void1) ; 236 } 237 231 238 } // namespace xios -
XIOS/dev/XIOS_DEV_CMIP6/src/distribution_server.hpp
r1202 r1340 50 50 virtual void computeLocalIndex(CArray<size_t,1>& globalIndex); 51 51 virtual void computeGlobalIndex(CArray<int,1>& indexes) const; 52 virtual void partialClear(void); //! clear heavy sized attibutes 52 53 53 54 protected: -
XIOS/dev/XIOS_DEV_CMIP6/src/node/field.cpp
r1330 r1340 237 237 238 238 this->setData(recv_data_tmp); 239 // delete incomming flux for server only 240 recvFoperationSrv.reset() ; 241 recvDataSrv.reset() ; 239 242 } 240 243 -
XIOS/dev/XIOS_DEV_CMIP6/src/node/grid.cpp
r1330 r1340 18 18 #include "grid_transformation.hpp" 19 19 #include "grid_generate.hpp" 20 #include "server.hpp" 20 21 21 22 namespace xios { … … 826 827 computeConnectedClients(); 827 828 } 829 } 830 if (CServer::serverLevel==2) 831 { 832 computeWrittenIndex() ; 833 if (serverDistribution_!=0) serverDistribution_->partialClear() ; 834 if (clientDistribution_!=0) clientDistribution_->partialClear() ; 835 outGlobalIndexFromClient.clear() ; 828 836 } 829 837 } … … 1250 1258 } 1251 1259 1260 1252 1261 void CGrid::computeClientIndexScalarGrid() 1253 1262 {
Note: See TracChangeset
for help on using the changeset viewer.