Ignore:
Timestamp:
03/28/23 16:42:11 (15 months ago)
Author:
ymipsl
Message:

First guess in supression of attached mode replaced by online reader and write filters

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS3/dev/XIOS_ATTACHED/src/node/file.cpp

    r2458 r2482  
    178178 
    179179      return (this->enabledFields); 
     180   } 
     181   CATCH_DUMP_ATTR 
     182 
     183   void CFile::replaceEnabledFields(CField* fieldIn, CField* fieldOut) 
     184   TRY 
     185   { 
     186     for(auto& enableField : enabledFields) if (enableField==fieldIn) enableField=fieldOut ; 
    180187   } 
    181188   CATCH_DUMP_ATTR 
     
    979986 
    980987   /*! 
    981     * Post-process the filter graph for each active field. 
    982     */ 
    983    void CFile::postProcessFilterGraph() 
    984    TRY 
    985    { 
    986      int size = this->enabledFields.size(); 
    987      for (int i = 0; i < size; ++i) 
    988      { 
    989        this->enabledFields[i]->checkIfMustAutoTrigger(); 
    990      } 
    991    } 
    992    CATCH_DUMP_ATTR 
    993  
    994    /*! 
    995988     Prefetching the data for enabled fields read from file. 
    996989   */ 
     
    1004997     for (int i = 0; i < size; ++i) 
    1005998       this->enabledFields[i]->sendReadDataRequest(CContext::getCurrent()->getCalendar()->getCurrentDate()); 
    1006    } 
    1007    CATCH_DUMP_ATTR 
    1008  
    1009    /*! 
    1010      Do all pre timestep operations for enabled fields in read mode: 
    1011       - Check that the data excepted from server has been received 
    1012       - Check if some filters must auto-trigger 
    1013    */ 
    1014    void CFile::doPreTimestepOperationsForEnabledReadModeFields(void) 
    1015    TRY 
    1016    { 
    1017      if (mode.isEmpty() || mode.getValue() != mode_attr::read) 
    1018        return; 
    1019  
    1020      int size = this->enabledFields.size(); 
    1021      for (int i = 0; i < size; ++i) 
    1022      { 
    1023        this->enabledFields[i]->checkForLateDataFromServer(); 
    1024        this->enabledFields[i]->autoTriggerIfNeeded(); 
    1025      } 
    1026999   } 
    10271000   CATCH_DUMP_ATTR 
Note: See TracChangeset for help on using the changeset viewer.