libsim Versione 8.0.0

◆ arrayof_ttr_mapper_insert_unique()

subroutine, private arrayof_ttr_mapper_insert_unique ( type(arrayof_ttr_mapper) this,
type(ttr_mapper), intent(in) content,
integer, intent(in), optional pos )
private

Method for inserting an element of the array at a desired position only if it is not present in the array yet.

If necessary, the array is reallocated to accomodate the new element.

Parametri
thisarray object to extend
[in]contentobject of TYPE TYPE(ttr_mapper) to insert
[in]posposition where to insert, if it is out of range, it is clipped, if it is not provided, the object is appended

Definizione alla linea 566 del file stat_proc_engine.F90.

567! create output time and timerange lists
568
569IF (lforecast) THEN ! forecast mode
570 IF (time_definition == 0) THEN ! reference time
571 CALL insert(a_otime, itime) ! should I limit to elements itime >= lstart?
572
573! apply start shift to timerange, not to reftime
574! why did we use itime(SIZE(itime)) (last ref time)?
575! CALL getval(lstart-itime(SIZE(itime)), asec=dstart)
576 CALL getval(lstart-itime(1), asec=dstart)
577! allow starting before first reftime but restrict dtstart to -steps
578! dstart = MAX(0, dstart)

Generated with Doxygen.