ConvertUnitsAction Derived Type

type, public, extends(ExtensionAction) :: ConvertUnitsAction


Inherits

type~~convertunitsaction~~InheritsGraph type~convertunitsaction ConvertUnitsAction ESMF_Field ESMF_Field type~convertunitsaction->ESMF_Field f_in, f_out type~converter Converter type~convertunitsaction->type~converter converter type~extensionaction ExtensionAction type~convertunitsaction->type~extensionaction type~cptrwrapper CptrWrapper type~converter->type~cptrwrapper c_ptr c_ptr type~cptrwrapper->c_ptr cptr_

Constructor

public interface ConvertUnitsAction

  • public function new_converter(src_units, dst_units) result(action)

    Arguments

    Type IntentOptional Attributes Name
    character(len=*), intent(in) :: src_units
    character(len=*), intent(in) :: dst_units

    Return Value type(ConvertUnitsAction)


Type-Bound Procedures

procedure, public :: initialize

  • public subroutine initialize(this, importState, exportState, clock, rc)

    Arguments

    Type IntentOptional Attributes Name
    class(ConvertUnitsAction), intent(inout) :: this
    type(ESMF_State) :: importState
    type(ESMF_State) :: exportState
    type(ESMF_Clock) :: clock
    integer, intent(out), optional :: rc

procedure, public :: run

  • public subroutine run(this, importState, exportState, clock, rc)

    Arguments

    Type IntentOptional Attributes Name
    class(ConvertUnitsAction), intent(inout) :: this
    type(ESMF_State) :: importState
    type(ESMF_State) :: exportState
    type(ESMF_Clock) :: clock
    integer, intent(out), optional :: rc

Source Code

   type, extends(ExtensionAction) :: ConvertUnitsAction
      private
      type(UDUNITS_converter) :: converter
      type(ESMF_Field) :: f_in, f_out
      character(:), allocatable :: src_units, dst_units
   contains
      procedure :: initialize
      procedure :: run
   end type ConvertUnitsAction