Afivo  0.3
Data Types | Functions/Subroutines | Variables
m_afivo_types Module Reference

This module contains the basic dimension-independent types and constants that are used in Afivo, together with some basic routines. Dimension-dependent types and constant are place in m_a2_types and m_a3_types. More...

Data Types

type  lvl_t
 Type which contains the indices of all boxes at a refinement level, as well as a list with all the "leaf" boxes and non-leaf (parent) boxes. More...
 
type  ref_info_t
 Type that contains the refinement changes in a tree. More...
 
type  ref_lvl_t
 Type that contains the refinement changes in a level. More...
 

Functions/Subroutines

integer function af_get_max_threads ()
 Get number of threads. More...
 

Variables

integer, parameter dp = kind(0.0d0)
 
integer, parameter af_rm_ref = -1
 Value indicating you want to derefine a box. More...
 
integer, parameter af_keep_ref = 0
 Value indicating you want to keep a box's refinement. More...
 
integer, parameter af_do_ref = 1
 Value indicating you want to refine a box. More...
 
integer, parameter af_derefine = -2
 The children of a box are removed (for internal use) More...
 
integer, parameter af_refine = 2
 A box will be refined (for internal use) More...
 
integer, parameter af_no_box = 0
 Special value indicating there is no box. More...
 
integer, parameter af_phys_boundary = -1
 Special value indicating a physical (non-periodic) boundary. More...
 
integer, parameter af_init_tag = -huge(1)
 Each box contains a tag, for which bits can be set. This is the initial value, which should not be used by the user. More...
 
integer, parameter af_xyz = 1
 Default coordinate system. More...
 
integer, parameter af_cyl = 2
 Cylindrical coordinate system. More...
 
character(len= *), dimension(2), parameter af_coord_names = ["Cartesian ", "Cylindrical"]
 Names of coordinate systems. More...
 
integer, parameter af_bc_dirichlet = -10
 Value to indicate a Dirichlet boundary condition. More...
 
integer, parameter af_bc_neumann = -11
 Value to indicate a Neumann boundary condition. More...
 
integer, parameter af_bc_continuous = -12
 Value to indicate a continuous boundary condition. More...
 
integer, parameter af_nlen = 20
 Maximum length of the names of variables. More...
 

Detailed Description

This module contains the basic dimension-independent types and constants that are used in Afivo, together with some basic routines. Dimension-dependent types and constant are place in m_a2_types and m_a3_types.

Function/Subroutine Documentation

§ af_get_max_threads()

integer function m_afivo_types::af_get_max_threads ( )

Get number of threads.

Definition at line 84 of file m_afivo_types.f90.

Variable Documentation

§ dp

integer, parameter m_afivo_types::dp = kind(0.0d0)

Definition at line 10 of file m_afivo_types.f90.

§ af_rm_ref

integer, parameter m_afivo_types::af_rm_ref = -1

Value indicating you want to derefine a box.

Definition at line 13 of file m_afivo_types.f90.

§ af_keep_ref

integer, parameter m_afivo_types::af_keep_ref = 0

Value indicating you want to keep a box's refinement.

Definition at line 16 of file m_afivo_types.f90.

§ af_do_ref

integer, parameter m_afivo_types::af_do_ref = 1

Value indicating you want to refine a box.

Definition at line 19 of file m_afivo_types.f90.

§ af_derefine

integer, parameter m_afivo_types::af_derefine = -2

The children of a box are removed (for internal use)

Definition at line 22 of file m_afivo_types.f90.

§ af_refine

integer, parameter m_afivo_types::af_refine = 2

A box will be refined (for internal use)

Definition at line 25 of file m_afivo_types.f90.

§ af_no_box

integer, parameter m_afivo_types::af_no_box = 0

Special value indicating there is no box.

Definition at line 28 of file m_afivo_types.f90.

§ af_phys_boundary

integer, parameter m_afivo_types::af_phys_boundary = -1

Special value indicating a physical (non-periodic) boundary.

Definition at line 31 of file m_afivo_types.f90.

§ af_init_tag

integer, parameter m_afivo_types::af_init_tag = -huge(1)

Each box contains a tag, for which bits can be set. This is the initial value, which should not be used by the user.

Definition at line 35 of file m_afivo_types.f90.

§ af_xyz

integer, parameter m_afivo_types::af_xyz = 1

Default coordinate system.

Definition at line 38 of file m_afivo_types.f90.

§ af_cyl

integer, parameter m_afivo_types::af_cyl = 2

Cylindrical coordinate system.

Definition at line 41 of file m_afivo_types.f90.

§ af_coord_names

character(len=*), dimension(2), parameter m_afivo_types::af_coord_names = ["Cartesian ", "Cylindrical"]

Names of coordinate systems.

Definition at line 44 of file m_afivo_types.f90.

§ af_bc_dirichlet

integer, parameter m_afivo_types::af_bc_dirichlet = -10

Value to indicate a Dirichlet boundary condition.

Definition at line 48 of file m_afivo_types.f90.

§ af_bc_neumann

integer, parameter m_afivo_types::af_bc_neumann = -11

Value to indicate a Neumann boundary condition.

Definition at line 51 of file m_afivo_types.f90.

§ af_bc_continuous

integer, parameter m_afivo_types::af_bc_continuous = -12

Value to indicate a continuous boundary condition.

Definition at line 54 of file m_afivo_types.f90.

§ af_nlen

integer, parameter m_afivo_types::af_nlen = 20

Maximum length of the names of variables.

Definition at line 57 of file m_afivo_types.f90.