Module ppm_module_topo_alloc

This module contains the topology allocation and deallocation subroutines.

Defined Types

name description

no types

Defined Module Interfaces

Defined Module Subroutines

name description

no subroutines

Interface ppm_topo_alloc

Subroutines contained in this interface:

name description

ppm_topo_alloc

This routine (re-)allocates a topology object and all its members

Interface ppm_topo_dealloc

Subroutines contained in this interface:

name description

ppm_topo_dealloc

This routine deallocates all members of a topology object.

Subroutine ppm_topo_alloc

This routine (re-)allocates a topology object and all its members

Arguments

name type dimension intent optional description

topoid

integer

(INOUT)

Topology id structure to be (re)allocated

nsubs

integer

(IN)

Total number of subs on all procs

nsublist

integer

(IN)

Local number of subs on this proc

maxneigh

integer

(IN)

Maximum number of neighbours of any sub on this processor

prec

integer

(IN)

Precision for storage. One of:

info

integer

(OUT)

Return status, on success 0.

topoid

integer, , (INOUT)

Topology id structure to be (re)allocated

if topoid == 0 then a new topology should be allocated, else the topology with id == topoid is reallocated

nsubs

integer, , (IN)

Total number of subs on all procs

nsublist

integer, , (IN)

Local number of subs on this proc

maxneigh

integer, , (IN)

Maximum number of neighbours of any sub on this processor

prec

integer, , (IN)

Precision for storage. One of:

  • ppm_kind_single
  • ppm_kind_double
info

integer, , (OUT)

Return status, on success 0.

Used Modules

ppm_module_data, ppm_module_error, ppm_module_typedef, ppm_module_alloc, ppm_module_substop, ppm_module_mesh_alloc, ppm_module_substart

Subroutine ppm_topo_dealloc

This routine deallocates all members of a topology object.

Arguments

name type dimension intent optional description

topo

ppm_t_topo

(INOUT)

Topology structure to be deallocated

info

integer

(OUT)

Returns status, 0 upon success

topo

ppm_t_topo, , (INOUT)

Topology structure to be deallocated

info

integer, , (OUT)

Returns status, 0 upon success

Used Modules

ppm_module_data, ppm_module_error, ppm_module_typedef, ppm_module_alloc, ppm_module_substop, ppm_module_mesh_alloc, ppm_module_substart

Defined Module Variables

name type dimension description

no variables

Used Modules

has no uses