Ignore:
Timestamp:
10/12/20 17:15:59 (4 years ago)
Author:
ymipsl
Message:

Xios coupling
some cleaning...
YM

Location:
XIOS/dev/dev_ym/XIOS_COUPLING/src/filter
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/filter/file_reader_source_filter.cpp

    r1934 r1962  
    5757      file_->checkReadFile(); 
    5858      nStepMax_ = file_->getDataInput()->getFieldNbRecords(field_); 
    59       nStep_ = 0 ; 
     59      nStep_ = file_->record_offset.isEmpty() ? 0 : file_->record_offset; ; 
    6060    } 
    6161    MPI_Allreduce(MPI_IN_PLACE, &nStepMax_, 1, MPI_INT, MPI_MAX, context->getIntraComm()); 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/filter/file_writer_store_filter.cpp

    r1961 r1962  
    2323    else needToWrite_=false; 
    2424    lastFileSplit_ = file_->getLastSplit() ; 
    25     nstep_ = 0 ; 
     25    nstep_ = file_->record_offset.isEmpty() ? 0 : file_->record_offset; // record_offset < 0 ==> no output (debugging) 
    2626    if (!field->scale_factor.isEmpty()) { scaleFactor_ = field->scale_factor ; hasScaleFactor_ = true ; } 
    2727    if (!field->add_offset.isEmpty()) { addOffset_ = field->add_offset ; hasAddOffset_ = true ; } 
Note: See TracChangeset for help on using the changeset viewer.