MPI-AMRVAC  2.2
The MPI - Adaptive Mesh Refinement - Versatile Advection Code
Data Types | Variables
mod_forest Module Reference

Module with basic grid data structures. More...

Data Types

type  tree_node
 The data structure that contains information about a tree node/grid block. More...
 
type  tree_node_ptr
 Pointer to a tree_node. More...
 

Variables

type(tree_node_ptr), dimension(:^d &), allocatable, save tree_root
 Pointers to the coarse grid. More...
 
type(tree_node_ptr), dimension(:,:), allocatable, save igrid_to_node
 Array to go from an [igrid, ipe] index to a node pointer. More...
 
type(tree_node_ptr), dimension(:), allocatable, save level_head
 The head pointer of the linked list per refinement level. More...
 
type(tree_node_ptr), dimension(:), allocatable, save level_tail
 The tail pointer of the linked list per refinement level. More...
 
integer, dimension(:,:), allocatable, save sfc
 Array to go from a Morton number to an igrid and processor index. Sfc(1:3, MN) contains [igrid, ipe, active], where MN is a morton number and active is 0 or 1. More...
 
integer, dimension(:,:), allocatable, save sfc_iglevel1
 Space filling curve for level 1 grid. sfc_iglevel1(^D, MN) gives ig^D (the spatial index of the grid) More...
 
integer, dimension(:^d &), allocatable, save iglevel1_sfc
 iglevel1_sfc(ig^D) gives the Morton number for grid ig^D More...
 
integer, dimension(:), allocatable, save sfc_to_igrid
 Go from a Morton number to an igrid index (for a single processor) More...
 
integer, dimension(:), allocatable, save igrid_to_sfc
 Go from a grid index to Morton number (for a single processor) More...
 
integer, dimension(:), allocatable, save sfc_phybound
 Space filling curve used for physical boundary blocks. More...
 
integer, dimension(:), allocatable, save morton_start
 First Morton number per processor. More...
 
integer, dimension(:), allocatable, save morton_stop
 Last Morton number per processor. More...
 
integer, dimension(:), allocatable, save morton_sub_start
 
integer, dimension(:), allocatable, save morton_sub_stop
 
logical, dimension(:,:), allocatable, save coarsen
 AMR flags and grids-in-use identifier per processor (igrid,ipe) More...
 
logical, dimension(:,:), allocatable, save refine
 
logical, dimension(:,:), allocatable, save buffer
 
logical, dimension(:,:), allocatable, save igrid_inuse
 
integer, save nparents
 Number of parent blocks. More...
 
integer, save nleafs
 Number of leaf block. More...
 
integer nleafs_active
 
integer nglev1
 
integer ifdef
 
integer evolvingboundary
 
integer nphyboundblock
 
integer, dimension(:), allocatable, save nleafs_level
 How many leaves are present per refinement level. More...
 

Detailed Description

Module with basic grid data structures.

Variable Documentation

◆ buffer

logical, dimension(:,:), allocatable, save mod_forest::buffer

Definition at line 70 of file mod_forest.t.

◆ coarsen

logical, dimension(:,:), allocatable, save mod_forest::coarsen

AMR flags and grids-in-use identifier per processor (igrid,ipe)

Definition at line 70 of file mod_forest.t.

◆ evolvingboundary

integer mod_forest::evolvingboundary

Definition at line 78 of file mod_forest.t.

◆ ifdef

integer mod_forest::ifdef

Definition at line 78 of file mod_forest.t.

◆ iglevel1_sfc

integer, dimension(:^d&), allocatable, save mod_forest::iglevel1_sfc

iglevel1_sfc(ig^D) gives the Morton number for grid ig^D

Definition at line 50 of file mod_forest.t.

◆ igrid_inuse

logical, dimension(:,:), allocatable, save mod_forest::igrid_inuse

Definition at line 70 of file mod_forest.t.

◆ igrid_to_node

type(tree_node_ptr), dimension(:,:), allocatable, save mod_forest::igrid_to_node

Array to go from an [igrid, ipe] index to a node pointer.

Definition at line 32 of file mod_forest.t.

◆ igrid_to_sfc

integer, dimension(:), allocatable, save mod_forest::igrid_to_sfc

Go from a grid index to Morton number (for a single processor)

Definition at line 56 of file mod_forest.t.

◆ level_head

type(tree_node_ptr), dimension(:), allocatable, save mod_forest::level_head

The head pointer of the linked list per refinement level.

Definition at line 35 of file mod_forest.t.

◆ level_tail

type(tree_node_ptr), dimension(:), allocatable, save mod_forest::level_tail

The tail pointer of the linked list per refinement level.

Definition at line 38 of file mod_forest.t.

◆ morton_start

integer, dimension(:), allocatable, save mod_forest::morton_start

First Morton number per processor.

Definition at line 62 of file mod_forest.t.

◆ morton_stop

integer, dimension(:), allocatable, save mod_forest::morton_stop

Last Morton number per processor.

Definition at line 65 of file mod_forest.t.

◆ morton_sub_start

integer, dimension(:), allocatable, save mod_forest::morton_sub_start

Definition at line 67 of file mod_forest.t.

◆ morton_sub_stop

integer, dimension(:), allocatable, save mod_forest::morton_sub_stop

Definition at line 67 of file mod_forest.t.

◆ nglev1

integer mod_forest::nglev1

Definition at line 78 of file mod_forest.t.

◆ nleafs

integer, save mod_forest::nleafs

Number of leaf block.

Definition at line 76 of file mod_forest.t.

◆ nleafs_active

integer mod_forest::nleafs_active

Definition at line 78 of file mod_forest.t.

◆ nleafs_level

integer, dimension(:), allocatable, save mod_forest::nleafs_level

How many leaves are present per refinement level.

Definition at line 81 of file mod_forest.t.

◆ nparents

integer, save mod_forest::nparents

Number of parent blocks.

Definition at line 73 of file mod_forest.t.

◆ nphyboundblock

integer mod_forest::nphyboundblock

Definition at line 78 of file mod_forest.t.

◆ refine

logical, dimension(:,:), allocatable, save mod_forest::refine

Definition at line 70 of file mod_forest.t.

◆ sfc

integer, dimension(:,:), allocatable, save mod_forest::sfc

Array to go from a Morton number to an igrid and processor index. Sfc(1:3, MN) contains [igrid, ipe, active], where MN is a morton number and active is 0 or 1.

Definition at line 43 of file mod_forest.t.

◆ sfc_iglevel1

integer, dimension(:,:), allocatable, save mod_forest::sfc_iglevel1

Space filling curve for level 1 grid. sfc_iglevel1(^D, MN) gives ig^D (the spatial index of the grid)

Definition at line 47 of file mod_forest.t.

◆ sfc_phybound

integer, dimension(:), allocatable, save mod_forest::sfc_phybound

Space filling curve used for physical boundary blocks.

Definition at line 59 of file mod_forest.t.

◆ sfc_to_igrid

integer, dimension(:), allocatable, save mod_forest::sfc_to_igrid

Go from a Morton number to an igrid index (for a single processor)

Definition at line 53 of file mod_forest.t.

◆ tree_root

type(tree_node_ptr), dimension(:^d&), allocatable, save mod_forest::tree_root

Pointers to the coarse grid.

Definition at line 29 of file mod_forest.t.