Changeset 650 for XIOS/trunk/src/node/field.cpp
- Timestamp:
- 07/24/15 16:40:05 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/field.cpp
r645 r650 130 130 CEventClient event(getType(), EVENT_ID_UPDATE_DATA); 131 131 132 map<int, CArray<int,1> *>::iterator it;132 map<int, CArray<int,1> >::iterator it; 133 133 list<CMessage> list_msg; 134 134 list<CArray<double,1> > list_data; … … 140 140 for (it = grid->storeIndex_toSrv.begin(); it != grid->storeIndex_toSrv.end(); it++) 141 141 { 142 int rank = (*it).first;143 CArray<int,1>& index = *(it->second);142 int rank = it->first; 143 CArray<int,1>& index = it->second; 144 144 145 145 list_msg.push_back(CMessage()); … … 159 159 for (it = grid->storeIndex_toSrv.begin(); it != grid->storeIndex_toSrv.end(); it++) 160 160 { 161 int rank = (*it).first;162 CArray<int,1>& index = *(it->second);161 int rank = it->first; 162 CArray<int,1>& index = it->second; 163 163 164 164 list_msg.push_back(CMessage()); … … 200 200 if (data_srv.empty()) 201 201 { 202 for (map<int, CArray<size_t, 1> *>::iterator it = grid->outIndexFromClient.begin(); it != grid->outIndexFromClient.end(); ++it)202 for (map<int, CArray<size_t, 1> >::iterator it = grid->outIndexFromClient.begin(); it != grid->outIndexFromClient.end(); ++it) 203 203 { 204 204 int rank = it->first; 205 CArray<double,1> data_tmp(it->second->numElements()); 206 data_srv.insert( pair<int, CArray<double,1>* >(rank, new CArray<double,1>(data_tmp))); 205 data_srv.insert( pair<int, CArray<double,1>* >(rank, new CArray<double,1>(it->second.numElements()))); 207 206 foperation_srv.insert(pair<int,boost::shared_ptr<func::CFunctor> >(rank,boost::shared_ptr<func::CFunctor>(new func::CInstant(*data_srv[rank])))); 208 207 } … … 329 328 if (data_srv.empty()) 330 329 { 331 for (map<int, CArray<size_t, 1> *>::iterator it = grid->outIndexFromClient.begin(); it != grid->outIndexFromClient.end(); ++it)332 data_srv.insert(pair<int, CArray<double,1>*>(it->first, new CArray<double,1>(it->second ->numElements())));330 for (map<int, CArray<size_t, 1> >::iterator it = grid->outIndexFromClient.begin(); it != grid->outIndexFromClient.end(); ++it) 331 data_srv.insert(pair<int, CArray<double,1>*>(it->first, new CArray<double,1>(it->second.numElements()))); 333 332 } 334 333
Note: See TracChangeset
for help on using the changeset viewer.