Ignore:
Timestamp:
12/18/18 17:34:59 (2 years ago)
Author:
yushan
Message:

bug fix (Nb of files less than Nb of servers)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_trunk_omp/src/calendar.cpp

    r1601 r1628  
    127127      const CDate& CCalendar::update(int step) 
    128128      { 
    129         #pragma omp critical (_output) 
    130         info(80) << "update step : " << step << " timestep " << this->timestep << std::endl; 
     129        //#pragma omp critical (_output) 
     130        //info(120) << "update step : " << step << " timestep " << this->timestep << std::endl; 
    131131        this->step = step; 
    132132        return (this->currentDate = this->getInitDate() + step * this->timestep); 
     
    160160      //----------------------------------------------------------------- 
    161161 
    162       int CCalendar::getMonthLength(const CDate& date) const 
     162      /*int CCalendar::getMonthLength(const CDate& date) const 
    163163      { // Retourne la durée du mois en jour. 
    164164        static const int NoLeapMonthLength[] = 
    165165          { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; 
    166166        return NoLeapMonthLength[date.getMonth() - 1]; 
    167       } 
     167      }*/ 
    168168 
    169169      StdString CCalendar::getType(void) const { return StdString(this->getId()); } 
     
    171171      int CCalendar::getYearTotalLength(const CDate& date) const { return (365 * 86400); } 
    172172 
    173       int CCalendar::getYearLength  (void) const { return 12; } 
    174       int CCalendar::getDayLength   (void) const { return 24; } 
    175       int CCalendar::getHourLength  (void) const { return 60; } 
    176       int CCalendar::getMinuteLength(void) const { return 60; } 
    177       int CCalendar::getDayLengthInSeconds(void) const { return getDayLength() * getHourLength() * getMinuteLength(); } 
     173      //int CCalendar::getYearLength  (void) const { return 12; } 
     174      //int CCalendar::getDayLength   (void) const { return 24; } 
     175      //int CCalendar::getHourLength  (void) const { return 60; } 
     176      //int CCalendar::getMinuteLength(void) const { return 60; } 
     177      //int CCalendar::getDayLengthInSeconds(void) const { return getDayLength() * getHourLength() * getMinuteLength(); } 
    178178 
    179179      bool CCalendar::hasLeapYear() const { return false; } 
Note: See TracChangeset for help on using the changeset viewer.