mg_box_t Derived Type

type, public :: mg_box_t

Box data structure


Inherited by

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

Components

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

Cell-centered data

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

Ids of children

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

Grid spacing

integer, public :: id

Box id (index in boxes(:) array)

integer, public :: ix(1)

Spatial index

integer, public :: lvl

Refinement level

integer, public :: neighbors(2*1)

Ids of neighbors

integer, public :: parent

Id of parent

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

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