Appearance
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
| Name | Type | Attributes | Description |
|---|---|---|---|
ratio | integer(kind=I4P) | Refinement ratio (2=1D, 4=2D, 8=3D). | |
block_to_refine | integer(kind=I8P) | allocatable | Field blocks to be refined [2, n_my_refine]. |
block_refined | integer(kind=I8P) | allocatable | Field refined blocks with Morton code [2, ratio*n_my_refine]. |
block_to_derefine | integer(kind=I8P) | allocatable | Field blocks to be derefined [n_my_derefine]. |
block_derefined | integer(kind=I8P) | allocatable | Field derefined blocks with Morton code [2, n_my_derefine/ratio]. |
Type-Bound Procedures
| Name | Attributes | Description |
|---|---|---|
has_refinements | pass(self) | Return true if there are local blocks to refine. |
has_derefinements | pass(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
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(refinement_plan_object) | in | The 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
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(refinement_plan_object) | in | The refinement plan. |