|
libsim Versione 8.0.0
|
◆ arrayof_ttr_mapper_append_unique()
Quick function to append an element to the array only if it is not present in the array yet. The return value is the position at which the element has been appended or at which it has been found.
Definizione alla linea 586 del file stat_proc_engine.F90. 587! don't know a priori how many different (thus incompatible) reference
588! times we have, so some assumption of regularity has to be made. For
589! this reason msteps, the minimum step between two times, is
590! computed. We choose to compute it as a difference between itime
591! elements, it could be also computed as difference of itimerange%p1
592! elements. But what if it is not modulo steps?
593 mstepms = steps*1000_int_ll
594 DO i = 2, SIZE(itime)
595 CALL getval(itime(i)-itime(i-1), amsec=stepms)
596 IF (stepms > 0_int_ll .AND. stepms < mstepms) THEN
597 msteps = stepms/1000_int_ll
598 IF (mod(steps, msteps) == 0) mstepms = stepms
599 ENDIF
|