Appearance
test_flume_user_criterion_box
The built-in primitive-box marker written as a registered criterion (a type-bound procedure needs a module).
Source: src/tests/flume/verification/regrid/test_flume_user_criterion.F90
Dependencies
Contents
Derived Types
box_criterion
The built-in primitive-box marker as a registered criterion.
Inheritance
Extends: amr_criterion_object
Components
| Name | Type | Attributes | Description |
|---|---|---|---|
name | character(len=:) | allocatable | The name an input selects it by ([amr_marker_N] name). |
runtime_only | logical | Skipped by the AMR of the initial condition. | |
box_emin | real(kind=R8P) | Box minimum corner. | |
box_emax | real(kind=R8P) | Box maximum corner. | |
target_level | integer(kind=I4P) | Refine below this level inside the box. |
Type-Bound Procedures
| Name | Attributes | Description |
|---|---|---|
mark | pass(self) | The votes of every block of the rank. |
vote | pass(self) | The vote of the built-in primitive-box marker for block b. |
box_criterion%mark
The votes of every block of this rank (votes(b) for local block b), by default vote block by block. An override may read and update the realm (ghost refreshes, auxiliary fields), and may act differently for the AMR of the initial condition (initial).
fortran
subroutine mark(self, realm, votes, initial)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(amr_criterion_object) | inout | The criterion. | |
realm | class(realm_object) | inout | The realm. | |
votes | integer(kind=I4P) | out | One vote per local block. | |
initial | logical | in | The AMR of the initial condition (the default votes alike). |
Call graph
Functions
vote
The vote of the built-in primitive-box marker for block b.
Returns: integer(kind=I4P)
fortran
function vote(self, realm, b) result(mark)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(box_criterion) | inout | The criterion. | |
realm | class(realm_object) | in | The realm. | |
b | integer(kind=I4P) | in | Local block index. |
Call graph