mg_box_t Derived Type

type, public :: mg_box_t

Box data structure


Inherited by

type~~mg_box_t~2~~InheritedByGraph type~mg_box_t~2 mg_box_t type~mg_t~2 mg_t type~mg_t~2->type~mg_box_t~2 boxes

Components

Type Visibility Attributes Name Initial
real(kind=dp), public, allocatable :: cc(:,:,:)

Cell-centered data

integer, public :: children(2**2)

Ids of children

real(kind=dp), public :: dr(2)

Grid spacing

integer, public :: id

Box id (index in boxes(:) array)

integer, public :: ix(2)

Spatial index

integer, public :: lvl

Refinement level

integer, public :: neighbors(2*2)

Ids of neighbors

integer, public :: parent

Id of parent

real(kind=dp), public :: r_min(2)

Minimum coordinate

integer, public :: rank

Which process owns this box


Source Code

  type, public :: mg_box_t
     integer  :: rank
     !< Which process owns this box
     integer  :: id
     !< Box id (index in boxes(:) array)
     integer  :: lvl
     !< Refinement level
     integer  :: ix(2)
     !< Spatial index
     integer  :: parent
     !< Id of parent
     integer  :: children(2**2)
     !< Ids of children
     integer  :: neighbors(2*2)
     !< Ids of neighbors
     real(dp) :: r_min(2)
     !< Minimum coordinate
     real(dp) :: dr(2)
     !< Grid spacing
     !> Cell-centered data
     real(dp), allocatable :: cc(:, :, :)
  end type mg_box_t