report_matrix_size_error Subroutine

public subroutine report_matrix_size_error(name, var, expect_rows, expect_cols, actual_rows, actual_cols, err)

Reports a matrix size error.

Arguments

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

The name of the routine in which the error was found.

character(len=*), intent(in) :: var

The name of the offending variable.

integer(kind=int32), intent(in) :: expect_rows

The expected number of rows.

integer(kind=int32), intent(in) :: expect_cols

The expected number of columns.

integer(kind=int32), intent(in) :: actual_rows

The actual number of rows.

integer(kind=int32), intent(in) :: actual_cols

The actual number of columns.

class(errors), intent(inout) :: err

An errors-based object that if provided can be used to retrieve information relating to any errors encountered during execution.


Contents


Variables

Type Visibility Attributes Name Initial
character(len=512), public :: errmsg