process_spectral_010_poisson Subroutine

public subroutine process_spectral_010_poisson(div_u, a_re, a_im, off, inc, nx_spec, n, nz_spec, x_sp_st, z_sp_st, nx, nz)

Solve the Poisson equation with the pentadiagonal matrices of the stretched 010 case, along y.

The matrices are factored once at init by factor_spectral_010_poisson, so this routine only substitutes into div_u.

Ref. JCP 228 (2009), 5989–6015, Sec 4

Arguments

Type IntentOptional Attributes Name
complex(kind=dp), intent(inout), dimension(:, :, :) :: div_u

Divergence of velocity in spectral space

real(kind=dp), intent(in), dimension(:, :, :, :) :: a_re

Factored pentadiagonal matrices

real(kind=dp), intent(in), dimension(:, :, :, :) :: a_im

Factored pentadiagonal matrices

integer, intent(in) :: off

Offset and increment. The increment is 2 for only the odd or even rows

integer, intent(in) :: inc

Offset and increment. The increment is 2 for only the odd or even rows

integer, intent(in) :: nx_spec

Grid size in spectral space. n is the number of rows of the matrix

integer, intent(in) :: n

Grid size in spectral space. n is the number of rows of the matrix

integer, intent(in) :: nz_spec

Grid size in spectral space. n is the number of rows of the matrix

integer, intent(in) :: x_sp_st

Offsets in the permuted pencils in spectral space

integer, intent(in) :: z_sp_st

Offsets in the permuted pencils in spectral space

integer, intent(in) :: nx

Global cell size

integer, intent(in) :: nz

Global cell size


Called by

proc~~process_spectral_010_poisson~~CalledByGraph proc~process_spectral_010_poisson m_omp_spectral::process_spectral_010_poisson proc~solve_stretched_010 m_omp_poisson_fft::solve_stretched_010 proc~solve_stretched_010->proc~process_spectral_010_poisson proc~fft_postprocess_010_omp m_omp_poisson_fft::omp_poisson_010_t%fft_postprocess_010_omp proc~fft_postprocess_010_omp->proc~solve_stretched_010