Ignore:
Timestamp:
12/16/19 19:22:59 (4 years ago)
Author:
ymipsl
Message:
  • add some comment about grid map/array/indexes
  • Add some "_" to suffix data members of the class

YM

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  
    3434    packet->status = CDataPacket::NO_ERROR; 
    3535 
    36     packet->data.resize(grid->storeIndex_client.numElements());     
     36    packet->data.resize(grid->storeIndex_client_.numElements());     
    3737     
    3838    if (compression) 
     
    8080    packet->status = CDataPacket::NO_ERROR; 
    8181     
    82     if (data.size() != grid->storeIndex_fromSrv.size()) 
     82    if (data.size() != grid->storeIndex_fromSrv_.size()) 
    8383      ERROR("CSourceFilter::streamDataFromServer(CDate date, const std::map<int, CArray<double, 1> >& data)", 
    8484            << "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."); 
    8686 
    87     packet->data.resize(grid->storeIndex_client.numElements()); 
     87    packet->data.resize(grid->storeIndex_client_.numElements()); 
    8888    std::map<int, CArray<double, 1> >::const_iterator it, itEnd = data.end(); 
    8989    for (it = data.begin(); it != itEnd; it++) 
    9090    {       
    91       CArray<int,1>& index = grid->storeIndex_fromSrv[it->first]; 
     91      CArray<int,1>& index = grid->storeIndex_fromSrv_[it->first]; 
    9292      for (int n = 0; n < index.numElements(); n++) 
    9393        packet->data(index(n)) = it->second(n); 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/filter/spatial_transform_filter.cpp

    r1784 r1794  
    174174        gridTransformation->computeAll(dataAuxInputs, packet->timestamp); 
    175175      } 
    176       packet->data.resize(gridTransformation->getGridDestination()->storeIndex_client.numElements()); 
     176      packet->data.resize(gridTransformation->getGridDestination()->storeIndex_client_.numElements()); 
    177177      if (0 != packet->data.numElements()) 
    178178        (packet->data)(0) = defaultValue; 
Note: See TracChangeset for help on using the changeset viewer.