Changeset 544 for XIOS/branchs
- Timestamp:
- 12/16/14 17:09:58 (10 years ago)
- Location:
- XIOS/branchs/xios-1.0/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/branchs/xios-1.0/src/date.cpp
r501 r544 119 119 { 120 120 // Todo : Tester si la date courante est supérieure à la date initiale. 121 Time retvalue = - relCalendar.getNbSecond(relCalendar.get InitDate())121 Time retvalue = - relCalendar.getNbSecond(relCalendar.getTimeOrigin()) 122 122 + relCalendar.getNbSecond(*this); 123 123 -
XIOS/branchs/xios-1.0/src/date.hpp
r501 r544 32 32 friend StdIStream & operator>>(StdIStream & in, CDate & date); // Non testée. 33 33 34 operator Time(void) const; // Retourne le nombre de secondes écoulées depuis la date d'origine définie dans le calendrier. 34 //!< Return the number of seconds since the time origin fixed when creating the calendar 35 operator Time(void) const; 35 36 36 37 /// Traitements /// -
XIOS/branchs/xios-1.0/src/output/nc4_data_output.cpp
r501 r544 940 940 if (wtime) 941 941 { 942 time_counter(0)= (Time(*field->last_Write_srv) +Time(*field->lastlast_Write_srv))/2 -Time(context->calendar->getTimeOrigin());942 time_counter(0)= (Time(*field->last_Write_srv) + Time(*field->lastlast_Write_srv)) / 2; 943 943 if (field->foperation->timeType() == func::CFunctor::instant) 944 time_data(0) = Time(*field->last_Write_srv) -Time(context->calendar->getTimeOrigin());944 time_data(0) = Time(*field->last_Write_srv); 945 945 else if (field->foperation->timeType() == func::CFunctor::centered) time_data(0) = time_counter(0); 946 946 947 time_counter_bound(0) = Time(*field->lastlast_Write_srv) - Time(context->calendar->getTimeOrigin());948 time_counter_bound(1) = Time(*field->last_Write_srv) - Time(context->calendar->getTimeOrigin());947 time_counter_bound(0) = Time(*field->lastlast_Write_srv); 948 time_counter_bound(1) = Time(*field->last_Write_srv); 949 949 if (field->foperation->timeType() == func::CFunctor::instant) 950 time_data_bound(0) = time_data_bound(1) = Time(*field->last_Write_srv) -Time(context->calendar->getTimeOrigin());950 time_data_bound(0) = time_data_bound(1) = Time(*field->last_Write_srv); 951 951 else if (field->foperation->timeType() == func::CFunctor::centered) 952 952 {
Note: See TracChangeset
for help on using the changeset viewer.