Skip to content

adam_refinement_plan_object

ADAM, refinement plan class definition.

A refinement plan is a one-shot transfer object produced by tree_object%adapt and consumed by field_object%adapt in a single AMR cycle. It carries the field-block lists that the tree computes during refinement/derefinement, keeping them out of the tree's persistent state and decoupling tree_object from field_object.

Source: src/lib/common/adam_refinement_plan_object.F90

Dependencies

Contents

Derived Types

refinement_plan_object

Refinement plan class definition.

Components

NameTypeAttributesDescription
ratiointeger(kind=I4P)Refinement ratio (2=1D, 4=2D, 8=3D).
block_to_refineinteger(kind=I8P)allocatableField blocks to be refined [2, n_my_refine].
block_refinedinteger(kind=I8P)allocatableField refined blocks with Morton code [2, ratio*n_my_refine].
block_to_derefineinteger(kind=I8P)allocatableField blocks to be derefined [n_my_derefine].
block_derefinedinteger(kind=I8P)allocatableField derefined blocks with Morton code [2, n_my_derefine/ratio].

Type-Bound Procedures

NameAttributesDescription
has_refinementspass(self)Return true if there are local blocks to refine.
has_derefinementspass(self)Return true if there are local blocks to derefine.

Functions

has_refinements

Return true if there are local blocks to refine.

Attributes: pure

Returns: logical

fortran
function has_refinements(self) result(res)

Arguments

NameTypeIntentAttributesDescription
selfclass(refinement_plan_object)inThe refinement plan.

has_derefinements

Return true if there are local blocks to derefine.

Attributes: pure

Returns: logical

fortran
function has_derefinements(self) result(res)

Arguments

NameTypeIntentAttributesDescription
selfclass(refinement_plan_object)inThe refinement plan.