|
libsim Versione 8.0.0
|
◆ arrayof_ttr_mapper_packarray()
Method for packing the array object reducing at a minimum the memory occupation, without destroying its contents. The value of this::overalloc remains unchanged. After the call to the method, the object can continue to be used, extended and shortened as before. If the object is empty the array is allocated to zero length.
Definizione alla linea 756 del file stat_proc_engine.F90. 757! max_step = lvertime(i+1) - lvertime(i)
758! ENDDO
759! IF (lvertime(1) - pstart > max_step) max_step = lvertime(1) - pstart
760! IF (pend - lvertime(nt) > max_step) max_step = pend - lvertime(nt)
761! old way
762 IF (nt == 1) THEN
763 max_step = pend - pstart
764 ELSE
765 half = lvertime(1) + (lvertime(2) - lvertime(1))/2
766 max_step = half - pstart
767 DO i = 2, nt - 1
768 nexthalf = lvertime(i) + (lvertime(i+1) - lvertime(i))/2
|