Changeset 544
- Timestamp:
- 12/16/14 17:09:58 (10 years ago)
- Location:
- XIOS
- Files:
-
- 6 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 { -
XIOS/trunk/src/date.cpp
r532 r544 131 131 132 132 // Todo : Tester si la date courante est supérieure à la date initiale. 133 Time retvalue = - c.getNbSecond(c.get InitDate())133 Time retvalue = - c.getNbSecond(c.getTimeOrigin()) 134 134 + c.getNbSecond(*this); 135 135 -
XIOS/trunk/src/date.hpp
r532 r544 35 35 friend StdIStream & operator>>(StdIStream & in, CDate & date); // Non testée. 36 36 37 operator Time(void) const; // Retourne le nombre de secondes écoulées depuis la date d'origine définie dans le calendrier. 37 //!< Return the number of seconds since the time origin fixed when creating the calendar 38 operator Time(void) const; 38 39 39 40 /// Traitements /// -
XIOS/trunk/src/output/nc4_data_output.cpp
r540 r544 961 961 if (wtime) 962 962 { 963 time_counter(0)= (Time(*field->last_Write_srv) +Time(*field->lastlast_Write_srv))/2 -Time(context->calendar->getTimeOrigin());963 time_counter(0)= (Time(*field->last_Write_srv) + Time(*field->lastlast_Write_srv)) / 2; 964 964 if (field->foperation->timeType() == func::CFunctor::instant) 965 time_data(0) = Time(*field->last_Write_srv) -Time(context->calendar->getTimeOrigin());965 time_data(0) = Time(*field->last_Write_srv); 966 966 else if (field->foperation->timeType() == func::CFunctor::centered) time_data(0) = time_counter(0); 967 967 968 time_counter_bound(0) = Time(*field->lastlast_Write_srv) - Time(context->calendar->getTimeOrigin());969 time_counter_bound(1) = Time(*field->last_Write_srv) - Time(context->calendar->getTimeOrigin());968 time_counter_bound(0) = Time(*field->lastlast_Write_srv); 969 time_counter_bound(1) = Time(*field->last_Write_srv); 970 970 if (field->foperation->timeType() == func::CFunctor::instant) 971 time_data_bound(0) = time_data_bound(1) = Time(*field->last_Write_srv) -Time(context->calendar->getTimeOrigin());971 time_data_bound(0) = time_data_bound(1) = Time(*field->last_Write_srv); 972 972 else if (field->foperation->timeType() == func::CFunctor::centered) 973 973 {
Note: See TracChangeset
for help on using the changeset viewer.