iteration_callback_func Interface

interface
public subroutine iteration_callback_func(iter, et, r_rotating, r_inertial, r_se_rotating, seg_et, seg_r_rotating, seg_r_inertial, seg_r_se_rotating, defects)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: iter

iteration number

real(kind=wp), intent(in), dimension(:) :: et

(n) ephemeris times [sec]

real(kind=wp), intent(in), dimension(:,:) :: r_rotating

(3,n) positions [km], Moon-centered Earth-Moon rotating frame

real(kind=wp), intent(in), dimension(:,:) :: r_inertial

(3,n) positions [km], Moon-centered inertial frame

real(kind=wp), intent(in), dimension(:,:) :: r_se_rotating

(3,n) positions [km], Earth-centered Sun-Earth rotating frame

real(kind=wp), intent(in), dimension(:,:) :: seg_et

(2,nseg) each segment's start and end times [sec]

real(kind=wp), intent(in), dimension(:,:,:) :: seg_r_rotating

(3,2,nseg) their positions [km], rotating frame

real(kind=wp), intent(in), dimension(:,:,:) :: seg_r_inertial

(3,2,nseg) their positions [km], inertial frame

real(kind=wp), intent(in), dimension(:,:,:) :: seg_r_se_rotating

(3,2,nseg) their positions [km], Sun-Earth rotating frame

real(kind=wp), intent(in), dimension(:,:) :: defects

(2,nseg/2) at each interface (where segments 2k-1 and 2k end): |dr| [km], |dv| [km/s] (rotating frame)

Description

Receives the trajectory of a solver iteration (see halo_solver_main). The segments are joined in time order (the backward-propagated ones reversed, and the points shared by two segments only once). Also each segment's start and end (where its propagation starts and ends: for a backward-propagated segment, the start is the later time), and the constraint defects at the segments' interfaces.