error_info_t Derived Type

type, public :: error_info_t

Specifies additional user defined output for an error message that contains more than a simple message. May have a descriptive string and one dimensional integer and real arrays to print out variables.


Components

Type Visibility Attributes Name Initial
character(len=:), public, allocatable :: c_info

Additional user defined string message

integer, public, dimension(:), allocatable :: i_info

Additional user defined integer variables

real(kind=FP), public, dimension(:), allocatable :: r_info

Additional user defined real variables


Type-Bound Procedures

procedure, public :: print => print_error_info

  • interface

    private module subroutine print_error_info(this, channel, prefix)

    Prints out the content of the error_info_t type

    Arguments

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

    Instance of the class

    integer, intent(in) :: channel

    Channel to print the error info to

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

    Prefix that can be put before any printout