fplot_errors Module


Uses


Contents


Variables

Type Visibility Attributes Name Initial
integer(kind=int32), public, parameter :: PLOT_ARRAY_SIZE_MISMATCH_ERROR = 1003

Occurs if there is an array size mismatch error.

integer(kind=int32), public, parameter :: PLOT_GNUPLOT_FILE_ERROR = 1004

Occurs if there is a GNUPLOT file error.

integer(kind=int32), public, parameter :: PLOT_INVALID_INPUT_ERROR = 1001

Occurs if an invalid input is provided.

integer(kind=int32), public, parameter :: PLOT_INVALID_OPERATION_ERROR = 1002

Occurs if an attempt is made to perform an invalid operation.

integer(kind=int32), public, parameter :: PLOT_OUT_OF_MEMORY_ERROR = 1000

Occurs if there is insufficient memory available for the requested operation.


Subroutines

public subroutine report_array_size_mismatch_error(err, fcn, name, expected, actual)

Reports an array size mismatch error.

Arguments

Type IntentOptional Attributes Name
class(errors), intent(inout) :: err

The error handling object.

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

The name of the function or subroutine in which the error occurred.

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

The variable name.

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

The expected array size.

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

The actual array size.

public subroutine report_file_create_error(err, fcn, fname, flag)

Reports an I/O error related to file creating.

Arguments

Type IntentOptional Attributes Name
class(errors), intent(inout) :: err

The error handling object.

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

The name of the function or subroutine in which the error occurred.

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

The filename.

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

The error flag returned by the system.

public subroutine report_matrix_size_mismatch_error(err, fcn, name, mexp, nexp, mact, nact)

Reports a matrix size mismatch error.

Arguments

Type IntentOptional Attributes Name
class(errors), intent(inout) :: err

The error handling object.

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

The name of the function or subroutine in which the error occurred.

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

The variable name.

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

The expected number of rows.

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

The expected number of columns.

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

The actual number of rows.

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

The actual number of columns.

public subroutine report_memory_error(err, fcn, flag)

Reports a memory allocation error.

Arguments

Type IntentOptional Attributes Name
class(errors), intent(inout) :: err

The error handling object.

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

The name of the function or subroutine in which the error occurred.

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

The error flag returned by the system.