term_abstract_class Module

Houses abstract term class determining basic term interfaces


Used by


Interfaces

interface

  • private module subroutine noUpdate(this, varCont, modelData, hostModel)

    Default Term update function - does nothing

    Arguments

    Type IntentOptional Attributes Name
    class(Term), intent(inout) :: this
    type(VariableContainer), intent(in) :: varCont
    class(ModelboundData), intent(in), optional :: modelData
    class(ModelSurrogate), intent(in), optional :: hostModel

Abstract Interfaces

abstract interface

  • private pure function evaluateTerm(this, varCont) result(res)

    Get explicit value for the term

    Arguments

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

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

abstract interface

  • private pure function getEvolvedVar(this) result(name)

    Get name of the evolved variable of this term

    Arguments

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

    Return Value character(len=:), allocatable


Derived Types

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

General abstract term object

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
procedure, public :: makeDefined => makeDefinedObject
procedure, public :: makeUndefined => makeUndefinedObject
procedure, public :: update => noUpdate
procedure(evaluateTerm), public, deferred :: evaluate
procedure(getEvolvedVar), public, deferred :: getVarName