pencil_c Derived Type

type, private, bind(C) :: pencil_c

Structure to hold pencil decomposition info


Components

Type Visibility Attributes Name Initial
integer(kind=c_int8_t), public :: dim

Aligned dimension id

integer(kind=c_int8_t), public :: ndims

Number of dimensions

integer(kind=c_int32_t), public :: starts(3)

Local starts, starting from 0 for both C and Fortran

integer(kind=c_int32_t), public :: counts(3)

Local counts of data, in elements

integer(kind=c_size_t), public :: size

Total number of elements in a pencil