GroupEvaluator Derived Type

type, public, extends(Manipulator) :: GroupEvaluator

Manipulator that evaluates a specific model term group and writes the result into variable with given index


Components

Type Visibility Attributes Name Initial
logical, public :: userDefined = .false.

True only if user explicitly sets it to true

integer(kind=ik), private :: resultVarIndex
integer(kind=ik), private :: evaluatedModelIndex
integer(kind=ik), private :: evaluatedTermGroup

Type-Bound Procedures

procedure, public :: isDefined => isDefinedObject

  • interface

    private pure module function isDefinedObject(this) result(defined)

    Getter for userDefined

    Arguments

    Type IntentOptional Attributes Name
    class(Object), intent(in) :: this

    Return Value logical

procedure, public :: makeDefined => makeDefinedObject

  • interface

    private pure module subroutine makeDefinedObject(this)

    Set userDefined to .true.

    Arguments

    Type IntentOptional Attributes Name
    class(Object), intent(inout) :: this

procedure, public :: makeUndefined => makeUndefinedObject

  • interface

    private pure module subroutine makeUndefinedObject(this)

    Set userDefined to .false.

    Arguments

    Type IntentOptional Attributes Name
    class(Object), intent(inout) :: this

procedure, public :: init => initEvaluator

  • interface

    private pure module subroutine initEvaluator(this, resultVarIndex, modelIndex, termGroup)

    GroupEvaluator initialization routine

    Arguments

    Type IntentOptional Attributes Name
    class(GroupEvaluator), intent(inout) :: this
    integer(kind=ik), intent(in) :: resultVarIndex

    Index of variable to write the result in

    integer(kind=ik), intent(in) :: modelIndex

    Index of model whose term group should be evaluated

    integer(kind=ik), intent(in) :: termGroup

    Term group to evaluate in model

procedure, public :: affect => evaluate

  • interface

    private module subroutine evaluate(this, manipulatedModeller, outputVars, inputVars)

    Implementation of abstract manipulate routine for the evaluator

    Arguments

    Type IntentOptional Attributes Name
    class(GroupEvaluator), intent(inout) :: this
    class(ModellerSurrogate), intent(inout) :: manipulatedModeller

    Modeller to be used in callbacks during manipulation

    class(VariableContainer), intent(inout) :: outputVars

    VariableContainer object to store the manipulation output

    class(VariableContainer), intent(in) :: inputVars

    VariableContainer object housing input data for the manipulation routine