Module ppm_module_tree_alloc

This module provides the routines that allocate tree data structures.

Defined Types

name description

no types

Defined Module Interfaces

name description

ppm_tree_alloc

Defined Module Subroutines

name description

no subroutines

Interface ppm_tree_alloc

Subroutines contained in this interface:

name description

ppm_tree_alloc_ts

This routine (re)allocates the tree data structures.

ppm_tree_alloc_td

This routine (re)allocates the tree data structures.

ppm_tree_alloc_ds

This routine (re)allocates the tree data structures.

ppm_tree_alloc_dd

This routine (re)allocates the tree data structures.

Subroutine ppm_tree_alloc_dd

This routine (re)allocates the tree data structures.

Arguments

name type dimension intent optional description

iopt

integer

(IN)

Allocation mode (passed on to ppm_alloc)

nbox

integer

(IN)

New number of boxes to allocate

nbpd

integer

(IN)

Number of children per parent

min_box

real array

(:,:)

Lower coordinates of the box.

max_box

real array

(:,:)

Upper coordinates of the box.

boxcost

real array

(:)

Cost of all the boxes.

nchld

integer array

(:)

Number of children of each box.

blevel

integer array

(:)

Tree level of each box

info

integer

(OUT)

Return status, 0 on success

iopt

integer, , (IN)

Allocation mode (passed on to ppm_alloc)

nbox

integer, , (IN)

New number of boxes to allocate

nbpd

integer, , (IN)

Number of children per parent

min_box

real array, (:,:), no intent declared

Lower coordinates of the box.

1st index: x,y[,z] 2nd: box ID

max_box

real array, (:,:), no intent declared

Upper coordinates of the box.

1st index: x,y[,z] 2nd: box ID

boxcost

real array, (:), no intent declared

Cost of all the boxes.

nchld

integer array, (:), no intent declared

Number of children of each box.

blevel

integer array, (:), no intent declared

Tree level of each box

info

integer, , (OUT)

Return status, 0 on success

Used Modules

ppm_module_data, ppm_module_error, ppm_module_alloc, ppm_module_substop, ppm_module_data_tree, ppm_module_substart

Subroutine ppm_tree_alloc_ds

This routine (re)allocates the tree data structures.

Arguments

name type dimension intent optional description

iopt

integer

(IN)

Allocation mode (passed on to ppm_alloc)

nbox

integer

(IN)

New number of boxes to allocate

nbpd

integer

(IN)

Number of children per parent

min_box

real array

(:,:)

Lower coordinates of the box.

max_box

real array

(:,:)

Upper coordinates of the box.

boxcost

real array

(:)

Cost of all the boxes.

nchld

integer array

(:)

Number of children of each box.

blevel

integer array

(:)

Tree level of each box

info

integer

(OUT)

Return status, 0 on success

iopt

integer, , (IN)

Allocation mode (passed on to ppm_alloc)

nbox

integer, , (IN)

New number of boxes to allocate

nbpd

integer, , (IN)

Number of children per parent

min_box

real array, (:,:), no intent declared

Lower coordinates of the box.

1st index: x,y[,z] 2nd: box ID

max_box

real array, (:,:), no intent declared

Upper coordinates of the box.

1st index: x,y[,z] 2nd: box ID

boxcost

real array, (:), no intent declared

Cost of all the boxes.

nchld

integer array, (:), no intent declared

Number of children of each box.

blevel

integer array, (:), no intent declared

Tree level of each box

info

integer, , (OUT)

Return status, 0 on success

Used Modules

ppm_module_data, ppm_module_error, ppm_module_alloc, ppm_module_substop, ppm_module_data_tree, ppm_module_substart

Subroutine ppm_tree_alloc_td

This routine (re)allocates the tree data structures.

Arguments

name type dimension intent optional description

iopt

integer

(IN)

Allocation mode (passed on to ppm_alloc)

nbox

integer

(IN)

New number of boxes to allocate

nbpd

integer

(IN)

Number of children per parent

nlevel

integer

(IN)

Number of levels in the tree

min_box

real array

(:,:)

Lower coordinates of the box.

max_box

real array

(:,:)

Upper coordinates of the box.

boxcost

real array

(:)

Cost of all the boxes.

parent

integer array

(:)

Index of the parent box of each box. ppm_param_undefined if no

nchld

integer array

(:)

Number of children of each box.

child

integer array

(:,:)

Indices of all children of a box. 1st index: child ID, 2nd: box ID.

blevel

integer array

(:)

Tree level of each box

nbpl

integer array

(:)

The number of boxes per level

info

integer

(OUT)

Return status, 0 on success

iopt

integer, , (IN)

Allocation mode (passed on to ppm_alloc)

nbox

integer, , (IN)

New number of boxes to allocate

nbpd

integer, , (IN)

Number of children per parent

nlevel

integer, , (IN)

Number of levels in the tree

min_box

real array, (:,:), no intent declared

Lower coordinates of the box.

1st index: x,y[,z] 2nd: box ID

max_box

real array, (:,:), no intent declared

Upper coordinates of the box.

1st index: x,y[,z] 2nd: box ID

boxcost

real array, (:), no intent declared

Cost of all the boxes.

parent

integer array, (:), no intent declared

Index of the parent box of each box. ppm_param_undefined if no parent (i.e. root box)

nchld

integer array, (:), no intent declared

Number of children of each box.

child

integer array, (:,:), no intent declared

Indices of all children of a box. 1st index: child ID, 2nd: box ID.

blevel

integer array, (:), no intent declared

Tree level of each box

nbpl

integer array, (:), no intent declared

The number of boxes per level

info

integer, , (OUT)

Return status, 0 on success

Used Modules

ppm_module_data, ppm_module_error, ppm_module_alloc, ppm_module_substop, ppm_module_data_tree, ppm_module_substart

Subroutine ppm_tree_alloc_ts

This routine (re)allocates the tree data structures.

Arguments

name type dimension intent optional description

iopt

integer

(IN)

Allocation mode (passed on to ppm_alloc)

nbox

integer

(IN)

New number of boxes to allocate

nbpd

integer

(IN)

Number of children per parent

nlevel

integer

(IN)

Number of levels in the tree

min_box

real array

(:,:)

Lower coordinates of the box.

max_box

real array

(:,:)

Upper coordinates of the box.

boxcost

real array

(:)

Cost of all the boxes.

parent

integer array

(:)

Index of the parent box of each box. ppm_param_undefined if no

nchld

integer array

(:)

Number of children of each box.

child

integer array

(:,:)

Indices of all children of a box. 1st index: child ID, 2nd: box ID.

blevel

integer array

(:)

Tree level of each box

nbpl

integer array

(:)

The number of boxes per level

info

integer

(OUT)

Return status, 0 on success

iopt

integer, , (IN)

Allocation mode (passed on to ppm_alloc)

nbox

integer, , (IN)

New number of boxes to allocate

nbpd

integer, , (IN)

Number of children per parent

nlevel

integer, , (IN)

Number of levels in the tree

min_box

real array, (:,:), no intent declared

Lower coordinates of the box.

1st index: x,y[,z] 2nd: box ID

max_box

real array, (:,:), no intent declared

Upper coordinates of the box.

1st index: x,y[,z] 2nd: box ID

boxcost

real array, (:), no intent declared

Cost of all the boxes.

parent

integer array, (:), no intent declared

Index of the parent box of each box. ppm_param_undefined if no parent (i.e. root box)

nchld

integer array, (:), no intent declared

Number of children of each box.

child

integer array, (:,:), no intent declared

Indices of all children of a box. 1st index: child ID, 2nd: box ID.

blevel

integer array, (:), no intent declared

Tree level of each box

nbpl

integer array, (:), no intent declared

The number of boxes per level

info

integer, , (OUT)

Return status, 0 on success

Used Modules

ppm_module_data, ppm_module_error, ppm_module_alloc, ppm_module_substop, ppm_module_data_tree, ppm_module_substart

Defined Module Variables

name type dimension description

no variables

Used Modules

has no uses