Changeset 1514


Ignore:
Timestamp:
05/31/18 14:50:43 (2 years ago)
Author:
ymipsl
Message:

Fix for reading field : The "once" time operation is now allowed in read mode.

YM

File:
1 edited

Legend:

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

    r1473 r1514  
    16661666     bool isFieldRead  = file && !file->mode.isEmpty() && file->mode == CFile::mode_attr::read; 
    16671667     bool isFieldWrite = file && ( file->mode.isEmpty() ||  file->mode == CFile::mode_attr::write); 
    1668      if (isFieldRead && operation.getValue() != "instant") 
     1668     if (isFieldRead && !(operation.getValue() == "instant" || operation.getValue() == "once") )      
    16691669       ERROR("void CField::checkTimeAttributes(void)", 
    16701670             << "Unsupported operation for field '" << getFieldOutputName() << "'." << std::endl 
Note: See TracChangeset for help on using the changeset viewer.