m_error_v_manager Module

Manager of m_error_v across the Fortran-Python interface

Written by hand here. Generation to be automated in future (including docstrings of some sort).


Uses

  • module~~m_error_v_manager~~UsesGraph module~m_error_v_manager m_error_v_manager module~m_error_v m_error_v module~m_error_v_manager->module~m_error_v

Used by

  • module~~m_error_v_manager~~UsedByGraph module~m_error_v_manager m_error_v_manager module~m_error_v_creation_w m_error_v_creation_w module~m_error_v_creation_w->module~m_error_v_manager module~m_error_v_w m_error_v_w module~m_error_v_w->module~m_error_v_manager module~m_error_v_passing_w m_error_v_passing_w module~m_error_v_passing_w->module~m_error_v_manager

Contents


Functions

public function build_instance(code, message) result(instance_index)

Build an instance

Arguments

TypeIntentOptionalAttributesName
integer, intent(in) :: code

Error code

character(len=*), intent(in), optional :: message

Error message

Return Value integer

Index of the built instance

public function get_instance(instance_index) result(inst)

Arguments

TypeIntentOptionalAttributesName
integer, intent(in) :: instance_index

Index in instance_array of which to set the value equal to val

Return Value type(ErrorV)

Instance at instance_array(instance_index)


Subroutines

public subroutine finalise_instance(instance_index)

Finalise an instance

Arguments

TypeIntentOptionalAttributesName
integer, intent(in) :: instance_index

Index of the instance to finalise

public subroutine get_available_instance_index(available_instance_index)

Get a free instance index

Arguments

TypeIntentOptionalAttributesName
integer, intent(out) :: available_instance_index

Available instance index

public subroutine set_instance_index_to(instance_index, val)

Arguments

TypeIntentOptionalAttributesName
integer, intent(in) :: instance_index

Index in instance_array of which to set the value equal to val

type(ErrorV), intent(in) :: val

Ensure that instance_array and instance_available have at least n slots

Arguments

TypeIntentOptionalAttributesName
integer, intent(in) :: n