Send the epochs at the constraint points (where segments 2k-1 and 2k end) for
the solver's current x to the solver's epoch_callback.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(my_solver_type), | intent(inout) | :: | me | |||
| real(kind=wp), | intent(in), | dimension(:) | :: | x |
the solver's (scaled) opt vars for this iteration |
|
| integer, | intent(in) | :: | iter |
iteration number |
subroutine iteration_epochs(me,x,iter) implicit none class(my_solver_type),intent(inout) :: me real(wp),dimension(:),intent(in) :: x !! the solver's (scaled) opt vars for this iteration integer,intent(in) :: iter !! iteration number real(wp),dimension(:),allocatable :: et integer :: k, nseg call me%mission%put_x_in_segments(x) ! (the segments' epochs for this iteration) nseg = size(me%mission%segs) allocate(et(nseg/2)) do k = 1, nseg/2 associate (seg => me%mission%segs(2*k-1)) et(k) = seg%data%et_ref + seg%data%tf*day2sec end associate end do call me%epoch_callback(iter, et) end subroutine iteration_epochs