Ignore:
Timestamp:
08/31/22 17:23:56 (22 months ago)
Author:
ymipsl
Message:
  • Optimize remote connector computation in case of read (reverse way).
  • don't compute anymore clientFromServerConnector (and all intermediate computation) for non reading case.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS3/trunk/src/node/context.cpp

    r2343 r2397  
    10121012      for(auto file : this->enabledReadModeFiles) file->setContextClient(client) ; 
    10131013    
     1014 
     1015    // workflow startpoint => data from server on client side 
     1016    // important : sendFieldToInputFileServer must be done prior sendFieldToFileServer because for the first case the grid remoteConnectorIn 
     1017    //             and grid remoteConnectorOut will be computed, and in the second case only the remoteConnectorOut. 
     1018    if (serviceType_==CServicesManager::CLIENT) 
     1019    { 
     1020      for(auto field : fileInField)  
     1021      { 
     1022        field->sendFieldToInputFileServer() ; 
     1023        field->connectToServerInput(garbageCollector) ; // connect the field to server filter 
     1024        fileInFields_.push_back(field) ; 
     1025      } 
     1026    } 
     1027 
    10141028    // workflow endpoint => sent to IO/SERVER 
    10151029    if (serviceType_==CServicesManager::CLIENT || serviceType_==CServicesManager::GATHERER) 
     
    10761090    { 
    10771091      field->connectToCouplerOut(garbageCollector) ; // for now the same kind of filter that for file server 
    1078     } 
    1079  
    1080      // workflow startpoint => data from server on client side 
    1081     if (serviceType_==CServicesManager::CLIENT) 
    1082     { 
    1083       for(auto field : fileInField)  
    1084       { 
    1085         field->sendFieldToInputFileServer() ; 
    1086         field->connectToServerInput(garbageCollector) ; // connect the field to server filter 
    1087         fileInFields_.push_back(field) ; 
    1088       } 
    10891092    } 
    10901093 
Note: See TracChangeset for help on using the changeset viewer.