libsim  Versione8.0.0

◆ arrayof_ttr_mapper_delete()

subroutine arrayof_ttr_mapper_delete ( type(arrayof_ttr_mapper)  this,
logical, intent(in), optional  nodealloc 
)

Destructor for finalizing an array object.

If defined, calls the destructor for every element of the array object; finally it deallocates all the space occupied.

Parametri
thisarray object to be destroyed
[in]nodeallocif provided and .TRUE. , the space reserved for the array is not deallocated, thus the values are retained, while the array pointer is nullified, this means that the caller must have previously assigned the pointer contents thisarray to another pointer to prevent memory leaks

Definizione alla linea 715 del file stat_proc_engine.F90.

715  ELSE IF (pend1 == pend2) THEN
716  lmapper%extra_info = 2 ! end of interval
717  ELSE
718  lmapper%extra_info = imiss
719  ENDIF
720  lmapper%time = pstart1 ! = pend1, order by time?
721  n = insert_sorted(map_ttr(i,j), lmapper, .true., .true.)
722 ! no CYCLE, a single input can contribute to multiple output intervals
723  ENDIF
724  ENDDO do_otime2
725  ENDDO do_otimerange2
726  ENDDO do_itime2
727  ENDDO do_itimerange2
728 
729 ENDIF
730 
731 END SUBROUTINE recompute_stat_proc_agg_common
732 
733 
734 SUBROUTINE compute_stat_proc_agg_sw(vertime, pstart, pend, time_mask, &
735  max_step, weights)
736 TYPE(datetime),INTENT(in) :: vertime(:)
737 TYPE(datetime),INTENT(in) :: pstart
738 TYPE(datetime),INTENT(in) :: pend
739 LOGICAL,INTENT(in) :: time_mask(:)
740 TYPE(timedelta),OPTIONAL,INTENT(out) :: max_step
741 DOUBLE PRECISION,OPTIONAL,INTENT(out) :: weights(:)
742 
743 INTEGER :: i, nt
744 TYPE(datetime),ALLOCATABLE :: lvertime(:)
745 TYPE(datetime) :: half, nexthalf
746 INTEGER(kind=int_ll) :: dt, tdt
747 
748 nt = count(time_mask)
749 ALLOCATE(lvertime(nt))
750 lvertime = pack(vertime, mask=time_mask)
751 
752 IF (PRESENT(max_step)) THEN
753 ! new way
754 ! max_step = timedelta_0
755 ! DO i = 1, nt - 1
756 ! IF (lvertime(i+1) - lvertime(i) > max_step) &

Generated with Doxygen.