Changeset 2327 for XIOS/dev


Ignore:
Timestamp:
05/13/22 09:45:43 (3 years ago)
Author:
jderouillat
Message:

Add control of the size of the received data in the client to model filter (particularly used for interpolated input)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/filter/client_to_model_store_filter.cpp

    r2143 r2327  
    6666    if (packet->status == CDataPacket::NO_ERROR) 
    6767    { 
     68      if ( data.numElements() != grid_->getWorkflowToModelConnector()->getDstSize() ) 
     69      { 
     70        ERROR("CGridLocalConnector::transfer(...)", 
     71              << "Bad definition of grids size for grid (destination) " << grid_->getId() 
     72              << ", awaited size = " << data.numElements() 
     73              << ", while will generate data size = " << grid_->getWorkflowToModelConnector()->getDstSize() 
     74              ); 
     75 
     76      } 
     77      if ( packet->data.numElements() != grid_->getWorkflowToModelConnector()->getSrcSize() ) 
     78      { 
     79        ERROR("CGridLocalConnector::transfer(...)", 
     80              << "Bad definition of grids size for grid (source) " << grid_->getId() 
     81              << ", awaited size = " << grid_->getWorkflowToModelConnector()->getSrcSize() 
     82              << ", while received data size = " << packet->data.numElements() 
     83              ); 
     84      } 
    6885      if (hasMissingValue_) grid_->getWorkflowToModelConnector()->transfer(packet->data, data, missingValue_); 
    6986      else grid_->getWorkflowToModelConnector()->transfer(packet->data, data); 
Note: See TracChangeset for help on using the changeset viewer.