Skip to content

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

NameTypeAttributesDescription
namecharacter(len=:)allocatableThe name an input selects it by ([amr_marker_N] name).
runtime_onlylogicalSkipped by the AMR of the initial condition.
box_eminreal(kind=R8P)Box minimum corner.
box_emaxreal(kind=R8P)Box maximum corner.
target_levelinteger(kind=I4P)Refine below this level inside the box.

Type-Bound Procedures

NameAttributesDescription
markpass(self)The votes of every block of the rank.
votepass(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

NameTypeIntentAttributesDescription
selfclass(amr_criterion_object)inoutThe criterion.
realmclass(realm_object)inoutThe realm.
votesinteger(kind=I4P)outOne vote per local block.
initiallogicalinThe 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

NameTypeIntentAttributesDescription
selfclass(box_criterion)inoutThe criterion.
realmclass(realm_object)inThe realm.
binteger(kind=I4P)inLocal block index.

Call graph