Module ppm_module_mesh_derive

This module contains the interface to ppm_mesh_derive.

[Note]Note

The terminology distinguishes between meshes and fields (the data living on the meshes). Several fields can use the same mesh. Meshes are defined as ppm-internal TYPES, whereas fields are user-provided arrays.

Defined Types

name description

no types

Defined Module Interfaces

name description

ppm_mesh_derive

Defined Module Subroutines

name description

no subroutines

Interface ppm_mesh_derive

Subroutines contained in this interface:

name description

ppm_mesh_derive

This routine derives a new mesh from an existing one by refining

Subroutine ppm_mesh_derive

This routine derives a new mesh from an existing one by refining or coarsening the grid cells by a certain factor. For coarsening the number of cells in the original mesh needs to be divisible by that factor on every sub in every direction.

Arguments

name type dimension intent optional description

topoid

integer

(IN)

Topology ID for which mesh has been created,

template_meshid

integer

(IN)

Mesh id of the template mesh. It will NOT be overwritten.

new_meshid

integer

(INOUT)

Out mesh ID. If ⇐ 0 on input, the

act

integer

(IN)

Action. One of:

factor

integer array

(:)

(IN)

Factor by which to refine/coarsen the mesh in each direction.

info

integer

(OUT)

Returns status, 0 upon success

topoid

integer, , (IN)

Topology ID for which mesh has been created,

template_meshid

integer, , (IN)

Mesh id of the template mesh. It will NOT be overwritten.

new_meshid

integer, , (INOUT)

Out mesh ID. If ⇐ 0 on input, the routine will create a new mesh and return the ID here.

act

integer, , (IN)

Action. One of:

  • ppm_param_mesh_refine
  • ppm_param_mesh_coarsen
factor

integer array, (:), (IN)

Factor by which to refine/coarsen the mesh in each direction. For coarsening the number of mesh points on the old mesh must be divisible by this factor in every direction.

info

integer, , (OUT)

Returns status, 0 upon success

Used Modules

ppm_module_data, ppm_module_error, ppm_module_typedef, ppm_module_alloc, ppm_module_mesh_store, ppm_module_check_id, ppm_module_substop, ppm_module_data_mesh, ppm_module_substart

Defined Module Variables

name type dimension description

no variables

Used Modules

has no uses