Changeset 1248


Ignore:
Timestamp:
08/29/17 17:18:53 (3 years ago)
Author:
oabramkina
Message:

Fixing a bug appeared in dev after merging with trunk. Behavior in case of activated missing_values needs to be checked further.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/XIOS_DEV_CMIP6/src/node/field.cpp

    r1241 r1248  
    10241024       if (enableOutput && !storeFilter && !fileWriterFilter) 
    10251025       { 
    1026          storeFilter = boost::shared_ptr<CStoreFilter>(new CStoreFilter(gc, CContext::getCurrent(), grid, 
    1027                                                                         detectMissingValues, defaultValue)); 
    1028          instantDataFilter->connectOutput(storeFilter, 0); 
    1029        } 
    1030  
    1031        if (file && (file->mode.isEmpty() || file->mode == CFile::mode_attr::write)) 
    1032        { 
    1033          fileWriterFilter = boost::shared_ptr<CFileWriterFilter>(new CFileWriterFilter(gc, this)); 
    1034          getTemporalDataFilter(gc, file->output_freq)->connectOutput(fileWriterFilter, 0); 
     1026         if (!read_access.isEmpty() && read_access) 
     1027         { 
     1028           storeFilter = boost::shared_ptr<CStoreFilter>(new CStoreFilter(gc, CContext::getCurrent(), grid, 
     1029                                                                          detectMissingValues, defaultValue)); 
     1030           instantDataFilter->connectOutput(storeFilter, 0); 
     1031         } 
     1032 
     1033         if (file && (file->mode.isEmpty() || file->mode == CFile::mode_attr::write)) 
     1034         { 
     1035           fileWriterFilter = boost::shared_ptr<CFileWriterFilter>(new CFileWriterFilter(gc, this)); 
     1036           getTemporalDataFilter(gc, file->output_freq)->connectOutput(fileWriterFilter, 0); 
     1037         } 
    10351038       } 
    10361039     } 
Note: See TracChangeset for help on using the changeset viewer.