DL_MG
Data Types | Functions/Subroutines | Variables
dl_mg_alloc Module Reference

collection of subroutines that allocate/deallocate memory for grid arrays More...

Data Types

interface  mg_allocate
 
interface  mg_deallocate
 

Functions/Subroutines

subroutine, private mg_allocate_s (mg, nonlinear, have_steric)
 
subroutine, private mg_allocate_a (mg, nonlinear, have_steric)
 
subroutine, private mg_deallocate_s (mg)
 
subroutine, private mg_deallocate_a (mg)
 
subroutine galloc (mg, a, type, ierr)
 allocates 3d real array with halos according to the type an global indices the type is irrelevant becase all type have a halo of size 1 most probable this won't change in the forseable future More...
 
subroutine gdealloc (a, ierr)
 
subroutine get_lbound (mg, vtype, si)
 

Variables

integer, parameter p_vtype = 201
 flags for the array types the vector type are practically identical becase all 3d array use for multgrid have a halo of size 1 most probable this won't change in the forseable future More...
 
integer, parameter r_vtype = 202
 
integer, parameter f_vtype = 203
 
integer, parameter c_vtype = 204
 
integer, parameter z_vtype = 999
 
integer, parameter y_vtype = 666
 

Detailed Description

collection of subroutines that allocate/deallocate memory for grid arrays

Function/Subroutine Documentation

◆ galloc()

subroutine dl_mg_alloc::galloc ( type(mg_t), intent(inout)  mg,
real(wp), dimension(:,:,:), intent(out), allocatable  a,
integer, intent(in), optional  type,
integer, intent(out), optional  ierr 
)

allocates 3d real array with halos according to the type an global indices the type is irrelevant becase all type have a halo of size 1 most probable this won't change in the forseable future

◆ gdealloc()

subroutine dl_mg_alloc::gdealloc ( real(wp), dimension(:,:,:), intent(inout), allocatable  a,
integer, intent(out), optional  ierr 
)

◆ get_lbound()

subroutine dl_mg_alloc::get_lbound ( type(mg_t), intent(in)  mg,
integer, intent(in)  vtype,
integer, dimension(3), intent(out)  si 
)

◆ mg_allocate_a()

subroutine, private dl_mg_alloc::mg_allocate_a ( type(mg_t), dimension(:), intent(inout)  mg,
logical, intent(in)  nonlinear,
logical, intent(in)  have_steric 
)
private

◆ mg_allocate_s()

subroutine, private dl_mg_alloc::mg_allocate_s ( type(mg_t), intent(inout)  mg,
logical, intent(in)  nonlinear,
logical, intent(in)  have_steric 
)
private

Attention: this subroutine allocates mgw at top level were is not needed. The aray version avoid this

◆ mg_deallocate_a()

subroutine, private dl_mg_alloc::mg_deallocate_a ( type(mg_t), dimension(:)  mg)
private

◆ mg_deallocate_s()

subroutine, private dl_mg_alloc::mg_deallocate_s ( type(mg_t mg)
private

Variable Documentation

◆ c_vtype

integer, parameter dl_mg_alloc::c_vtype = 204

◆ f_vtype

integer, parameter dl_mg_alloc::f_vtype = 203

◆ p_vtype

integer, parameter dl_mg_alloc::p_vtype = 201

flags for the array types the vector type are practically identical becase all 3d array use for multgrid have a halo of size 1 most probable this won't change in the forseable future

◆ r_vtype

integer, parameter dl_mg_alloc::r_vtype = 202

◆ y_vtype

integer, parameter dl_mg_alloc::y_vtype = 666

◆ z_vtype

integer, parameter dl_mg_alloc::z_vtype = 999