libsim Versione 8.0.0

◆ pack_distinct_ttr_mapper()

type(ttr_mapper) function, dimension(dim) pack_distinct_ttr_mapper ( type(ttr_mapper), dimension(:), intent(in) vect,
integer, intent(in) dim,
logical, dimension(:), intent(in), optional mask,
logical, intent(in), optional back )

compatta gli elementi distinti di vect in un array

Definizione alla linea 971 del file stat_proc_engine.F90.

973INTEGER,INTENT(in) :: stat_proc
974TYPE(datetime),INTENT(in) :: pstart
975TYPE(datetime),INTENT(in) :: pend
976TYPE(datetime),INTENT(in) :: reftime
977
978TYPE(timedelta) :: p1, p2
979INTEGER(kind=int_ll) :: dmsec
980
981
982IF (time_definition == 0) THEN ! time == reference time
983 time = reftime
984 p1 = pend - reftime
985 p2 = pend - pstart
986ELSE IF (time_definition == 1 .OR. time_definition == 2) THEN ! time == verification time
987 time = pend
988 p1 = pend - reftime
989 p2 = pend - pstart
990ELSE
991 time = datetime_miss
992ENDIF
993
994timerange%timerange = stat_proc
995IF (time /= datetime_miss) THEN
996 CALL getval(p1, amsec=dmsec) ! end of period
997 timerange%p1 = int(dmsec/1000_int_ll)
998 CALL getval(p2, amsec=dmsec) ! length of period
999 timerange%p2 = int(dmsec/1000_int_ll)
1000ELSE
1001 timerange%p1 = imiss
1002 timerange%p2 = imiss
1003ENDIF
1004
1005END SUBROUTINE time_timerange_set_period
1006
1007
1008END MODULE stat_proc_engine
This module contains functions that are only for internal use of the library.

Generated with Doxygen.