Ignore:
Timestamp:
12/12/16 16:55:28 (7 years ago)
Author:
rlacroix
Message:

Improve the prefetching of the fields read from a file.

Previously the data was requested at the beginning of the timestep where it would be used which was too late and could cause performance issue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/field.hpp

    r1000 r1013  
    143143        void recvUpdateData(vector<int>& ranks, vector<CBufferIn*>& buffers); 
    144144        void writeField(void); 
    145         void sendReadDataRequest(void); 
     145        void sendReadDataRequest(const CDate& tsDataRequested); 
    146146        bool sendReadDataRequestIfNeeded(void); 
    147147        static void recvReadDataRequest(CEventServer& event); 
     
    195195         bool isEOF; 
    196196         CDate lastlast_Write_srv, last_Write_srv, last_operation_srv; 
    197          CDate lastDataRequestedFromServer; 
     197         CDate lastDataRequestedFromServer, lastDataReceivedFromServer; 
     198         bool wasDataAlreadyReceivedFromServer; 
    198199 
    199200         map<int,boost::shared_ptr<func::CFunctor> > foperation_srv; 
     
    205206         bool isReferenceSolved; 
    206207         std::vector<StdString> domAxisScalarIds_; 
    207          bool isReadDataRequestPending; 
    208208         bool useCompressedOutput; 
    209209 
Note: See TracChangeset for help on using the changeset viewer.