Ignore:
Timestamp:
09/25/17 16:48:44 (5 years ago)
Author:
oabramkina
Message:

Changing default value of freq_op in case of non-instant operations.

File:
1 edited

Legend:

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

    r1279 r1280  
    15721572       else 
    15731573       { 
    1574          CContext* context = CContext::getCurrent(); 
    15751574         if (operation.getValue()=="instant") 
    15761575         { 
    15771576           freq_op.setValue(file->output_freq.getValue()); 
    1578            freq_offset.setValue(file->output_freq.getValue() - TimeStep); 
     1577           freq_offset.setValue(file->output_freq.getValue()-TimeStep); 
    15791578         } 
    15801579         else 
    15811580         { 
    15821581           freq_op.setValue(TimeStep); 
    1583            freq_op.setValue(NoneDu); 
     1582           freq_offset.setValue(freq_op.getValue()-TimeStep); 
    15841583         } 
    15851584       } 
     
    15881587     { 
    15891588       if (freq_offset.isEmpty()) 
    1590          freq_offset.setValue(NoneDu); 
     1589         freq_offset.setValue(freq_op.getValue()-TimeStep); 
    15911590     } 
    15921591   } 
Note: See TracChangeset for help on using the changeset viewer.