Operator Derived Type

type, public, abstract, extends(Object) :: Operator

Abstract operator class for use in explicit terms to transform real arrays


Components

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

True only if user explicitly sets it to true


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 :: update => noUpdate

  • interface

    private module subroutine noUpdate(this, varCont)

    Default operator update function - does nothing

    Arguments

    Type IntentOptional Attributes Name
    class(Operator), intent(inout) :: this
    type(VariableContainer), intent(in) :: varCont

procedure(realArrayFunction), public, deferred, nopass :: actOn

  • pure function realArrayFunction(input) result(output) Prototype

    Arguments

    Type IntentOptional Attributes Name
    real(kind=rk), intent(in), dimension(:) :: input

    Return Value real(kind=rk), allocatable, dimension(:)