fold_destination Function

public function fold_destination(i, n) result(dst)

Where entry i of a non-periodic line of n points lands when the line is gathered by fold_index: the inverse permutation. The odd entries fill the first half in order, the even entries the second half in reverse. Used where a kernel moves the whole line in one pass and the fold rides along with it, as the Z fold of the 111 case does.

Arguments

Type IntentOptional Attributes Name
integer, intent(in), value :: i
integer, intent(in), value :: n

Return Value real


Called by

proc~~fold_destination~~CalledByGraph proc~fold_destination m_cuda_spectral::fold_destination proc~pack_110_yslab m_cuda_spectral::pack_110_yslab proc~pack_110_yslab->proc~fold_destination proc~transpose_xyz_to_zxy m_cuda_spectral::transpose_xyz_to_zxy proc~transpose_xyz_to_zxy->proc~fold_destination proc~transpose_zxy_to_xyz m_cuda_spectral::transpose_zxy_to_xyz proc~transpose_zxy_to_xyz->proc~fold_destination proc~unpack_110_yslab m_cuda_spectral::unpack_110_yslab proc~unpack_110_yslab->proc~fold_destination proc~fft_backward_110_cuda m_cuda_poisson_fft::cuda_poisson_11x_t%fft_backward_110_cuda proc~fft_backward_110_cuda->proc~transpose_zxy_to_xyz proc~redistribute_110_to_zslab m_cuda_poisson_fft::cuda_poisson_11x_t%redistribute_110_to_zslab proc~fft_backward_110_cuda->proc~redistribute_110_to_zslab proc~fft_forward_110_cuda m_cuda_poisson_fft::cuda_poisson_11x_t%fft_forward_110_cuda proc~fft_forward_110_cuda->proc~transpose_xyz_to_zxy proc~redistribute_110_to_yslab m_cuda_poisson_fft::cuda_poisson_11x_t%redistribute_110_to_yslab proc~fft_forward_110_cuda->proc~redistribute_110_to_yslab proc~redistribute_110_to_yslab->proc~unpack_110_yslab proc~redistribute_110_to_zslab->proc~pack_110_yslab