Changeset 1794 for XIOS/dev/dev_ym/XIOS_COUPLING/src/filter
- Timestamp:
- 12/16/19 19:22:59 (4 years ago)
- Location:
- XIOS/dev/dev_ym/XIOS_COUPLING/src/filter
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/filter/source_filter.cpp
r1637 r1794 34 34 packet->status = CDataPacket::NO_ERROR; 35 35 36 packet->data.resize(grid->storeIndex_client .numElements());36 packet->data.resize(grid->storeIndex_client_.numElements()); 37 37 38 38 if (compression) … … 80 80 packet->status = CDataPacket::NO_ERROR; 81 81 82 if (data.size() != grid->storeIndex_fromSrv .size())82 if (data.size() != grid->storeIndex_fromSrv_.size()) 83 83 ERROR("CSourceFilter::streamDataFromServer(CDate date, const std::map<int, CArray<double, 1> >& data)", 84 84 << "Incoherent data received from servers," 85 << " expected " << grid->storeIndex_fromSrv .size() << " chunks but " << data.size() << " were given.");85 << " expected " << grid->storeIndex_fromSrv_.size() << " chunks but " << data.size() << " were given."); 86 86 87 packet->data.resize(grid->storeIndex_client .numElements());87 packet->data.resize(grid->storeIndex_client_.numElements()); 88 88 std::map<int, CArray<double, 1> >::const_iterator it, itEnd = data.end(); 89 89 for (it = data.begin(); it != itEnd; it++) 90 90 { 91 CArray<int,1>& index = grid->storeIndex_fromSrv [it->first];91 CArray<int,1>& index = grid->storeIndex_fromSrv_[it->first]; 92 92 for (int n = 0; n < index.numElements(); n++) 93 93 packet->data(index(n)) = it->second(n); -
XIOS/dev/dev_ym/XIOS_COUPLING/src/filter/spatial_transform_filter.cpp
r1784 r1794 174 174 gridTransformation->computeAll(dataAuxInputs, packet->timestamp); 175 175 } 176 packet->data.resize(gridTransformation->getGridDestination()->storeIndex_client .numElements());176 packet->data.resize(gridTransformation->getGridDestination()->storeIndex_client_.numElements()); 177 177 if (0 != packet->data.numElements()) 178 178 (packet->data)(0) = defaultValue;
Note: See TracChangeset
for help on using the changeset viewer.