GridSystem Derived Type

type, public :: GridSystem

A data type that collect some info of a (coarse) grid system It is different the type Gridpara, which does not consist any variable like u, rhs, res, and etc.


Components

Type Visibility Attributes Name Initial
integer(kind=4), public :: nxc_global

Global grid size, in x and y directions respectively.

integer(kind=4), public :: nyc_global

Global grid size, in x and y directions respectively.

integer(kind=4), public :: nxc

Local grid size of a subdomain, in x and y directions respectively.

integer(kind=4), public :: nyc

Local grid size of a subdomain, in x and y directions respectively.

integer, public, dimension(0:npMax - 1) :: ic_offset

ic_offset: an array that contains the index offset for MPI ranks in x direction

integer, public, dimension(0:npMax - 1) :: jc_offset

jc_offset: an array that contains the index offset for MPI ranks in y direction

integer, public, dimension(0:npMax - 1) :: ic_nn

ic_nn: an array that contains the number of grid points for MPI ranks in x direction

integer, public, dimension(0:npMax - 1) :: jc_nn

jc_nn: an array that contains the number of grid points for MPI ranks in y direction

real(kind=realdp), public :: hxc

space step, hxhyc==hx*hy==hx^2

real(kind=realdp), public :: hyc

space step, hxhyc==hx*hy==hx^2

real(kind=realdp), public :: hxhyc

space step, hxhyc==hx*hy==hx^2

complex(kind=realdp), public, allocatable, dimension(:,:) :: u_c

Solution variable in subdomain

complex(kind=realdp), public, allocatable, dimension(:,:) :: rhs_c

RHS variable in subdomain

complex(kind=realdp), public, allocatable, dimension(:,:) :: res_c

Residual variable in subdomain

real(kind=realdp), public, allocatable, dimension(:,:) :: kxy_c

wavenumber in subdomain

real(kind=realdp), public, allocatable, dimension(:,:) :: kh2_c

wavenumber in subdomain