Module ppm_module_copy_image_subs

This module provides the decomposition routines.

Defined Types

name description

no types

Defined Module Interfaces

name description

ppm_copy_image_subs

Defined Module Subroutines

name description

no subroutines

Interface ppm_copy_image_subs

Subroutines contained in this interface:

name description

copy_imgsubs_s

This routine copies the sub domains to ghost sub domains

copy_imgsubs_d

This routine copies the sub domains to ghost sub domains

Subroutine copy_imgsubs_d

This routine copies the sub domains to ghost sub domains in the case of periodic boundary condition and stores the original ID of the sub domain - this to allow the find neighbours to search (without wrapping space) the list of sub domains and still retrieve the real ID of sub domain.

[Note]Note

This is a happy going routine: we are comparing the equality of floating point numbers but it works since the value of subs are assigned from the phys min/max and not computed (byte copy).

Arguments

name type dimension intent optional description

min_phys

real array

(:)

(IN)

Min. extent of the physical domain

max_phys

real array

(:)

(IN)

Max. extent of the physical domain

bcdef

integer array

(:)

(IN)

Boundary condition definition

min_sub

real array

(:,:)

Min. extent of the sub domain including after the call to this

max_sub

real array

(:,:)

Max. extent of the sub domain including after the call to this

nsubs

integer

(IN)

Total number of sub domains

subid

integer array

(:)

Real id of the sub domain

nsubsplus

integer

(OUT)

Total number of sub domains plus the ghost sub domains

info

integer

(OUT)

Returns status, 0 upon success

min_phys

real array, (:), (IN)

Min. extent of the physical domain

max_phys

real array, (:), (IN)

Max. extent of the physical domain

bcdef

integer array, (:), (IN)

Boundary condition definition

min_sub

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

Min. extent of the sub domain including after the call to this routine the ghost sub domains

max_sub

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

Max. extent of the sub domain including after the call to this routine the ghost sub domains

nsubs

integer, , (IN)

Total number of sub domains

subid

integer array, (:), no intent declared

Real id of the sub domain

nsubsplus

integer, , (OUT)

Total number of sub domains plus the ghost sub domains

info

integer, , (OUT)

Returns status, 0 upon success

Used Modules

ppm_module_data, ppm_module_alloc, ppm_module_error, ppm_module_substop, ppm_module_substart

Subroutine copy_imgsubs_s

This routine copies the sub domains to ghost sub domains in the case of periodic boundary condition and stores the original ID of the sub domain - this to allow the find neighbours to search (without wrapping space) the list of sub domains and still retrieve the real ID of sub domain.

[Note]Note

This is a happy going routine: we are comparing the equality of floating point numbers but it works since the value of subs are assigned from the phys min/max and not computed (byte copy).

Arguments

name type dimension intent optional description

min_phys

real array

(:)

(IN)

Min. extent of the physical domain

max_phys

real array

(:)

(IN)

Max. extent of the physical domain

bcdef

integer array

(:)

(IN)

Boundary condition definition

min_sub

real array

(:,:)

Min. extent of the sub domain including after the call to this

max_sub

real array

(:,:)

Max. extent of the sub domain including after the call to this

nsubs

integer

(IN)

Total number of sub domains

subid

integer array

(:)

Real id of the sub domain

nsubsplus

integer

(OUT)

Total number of sub domains plus the ghost sub domains

info

integer

(OUT)

Returns status, 0 upon success

min_phys

real array, (:), (IN)

Min. extent of the physical domain

max_phys

real array, (:), (IN)

Max. extent of the physical domain

bcdef

integer array, (:), (IN)

Boundary condition definition

min_sub

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

Min. extent of the sub domain including after the call to this routine the ghost sub domains

max_sub

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

Max. extent of the sub domain including after the call to this routine the ghost sub domains

nsubs

integer, , (IN)

Total number of sub domains

subid

integer array, (:), no intent declared

Real id of the sub domain

nsubsplus

integer, , (OUT)

Total number of sub domains plus the ghost sub domains

info

integer, , (OUT)

Returns status, 0 upon success

Used Modules

ppm_module_data, ppm_module_alloc, ppm_module_error, ppm_module_substop, ppm_module_substart

Defined Module Variables

name type dimension description

no variables

Used Modules

has no uses