mg_box_t Derived Type

type, public :: mg_box_t

Box data structure


Inherited by

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

Components

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

Cell-centered data

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

Ids of children

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

Grid spacing

integer, public :: id

Box id (index in boxes(:) array)

integer, public :: ix(3)

Spatial index

integer, public :: lvl

Refinement level

integer, public :: neighbors(2*3)

Ids of neighbors

integer, public :: parent

Id of parent

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

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(3)
     !< Spatial index
     integer  :: parent
     !< Id of parent
     integer  :: children(2**3)
     !< Ids of children
     integer  :: neighbors(2*3)
     !< Ids of neighbors
     real(dp) :: r_min(3)
     !< Minimum coordinate
     real(dp) :: dr(3)
     !< Grid spacing
     !> Cell-centered data
     real(dp), allocatable :: cc(:, :, :, :)
  end type mg_box_t