45 integer,
private :: len = 0
67 type(
vector_t),
intent(inout),
target :: v
69 character(len=80) :: name
70 character(len=5) :: id_str
78 allocate(this%lv(len))
81 write(id_str,
'(I0)') i
82 name = trim(this%v%name)//
'_lag'//id_str
83 call this%lv(i)%init(this%v%size(), name)
93 if (
associated(this%v))
then
98 if (
allocated(this%lv))
then
100 call this%lv(i)%free()
120 do i = this%len, 2, -1
121 this%lv(i) = this%lv(i-1)
Contains the vector_series_t type.
subroutine vector_series_set(this, g)
Set all vectors in a series to g.
subroutine vector_series_free(this)
Deallocates a vector series.
integer function vector_series_size(this)
Return the size of the vector series.
subroutine vector_series_init(this, v, len)
Initialize a vector series of length len for a vector v.
subroutine vector_series_update(this)
Update a vector series (evict oldest entry)
A wrapper for a pointer to a vector_series_t.
Stores a series (sequence) of vectors, logically connected to a base vector, and arranged according t...