generate_streamlines Subroutine

public subroutine generate_streamlines(x, y, u, v, density, trajectories, n_trajectories, trajectory_lengths)

Generate streamlines using matplotlib-compatible algorithm

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: x(:)
real(kind=wp), intent(in) :: y(:)
real(kind=wp), intent(in) :: u(:,:)
real(kind=wp), intent(in) :: v(:,:)
real(kind=wp), intent(in) :: density
real, intent(out), allocatable :: trajectories(:,:,:)
integer, intent(out) :: n_trajectories
integer, intent(out), allocatable :: trajectory_lengths(:)