fortran-lapack
Loading...
Searching...
No Matches
la_state_type::la_state Interface Reference

la_state defines a state return type for a linear algebra routine. State contains a status flag, a comment, and a procedure specifier that can be used to mark where the error happened More...

Public Member Functions

procedure destroy (this)
 Cleanup.
 
procedure handle (ierr, ierr_out)
 Error handling.
 
procedure print (this)
 Print error message.
 
procedure print_msg (this)
 Formatted message.
 
procedure ok (this)
 State properties.
 
procedure error (this)
 Check if the current state is an error state.
 
pure type(la_state) function new_state (where_at, flag, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20)
 Error creation message, with location location.
 
pure type(la_state) function new_state_nowhere (flag, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20)
 Error creation message, from N input variables (numeric or strings)
 

Public Attributes

integer(ilp) state = LINALG_SUCCESS
 The current exit state.
 
character(len=msg_length) message = repeat(' ', MSG_LENGTH)
 Message associated to the current state.
 
character(len=name_length) where_at = repeat(' ', NAME_LENGTH)
 Location of the state change.
 

Detailed Description

la_state defines a state return type for a linear algebra routine. State contains a status flag, a comment, and a procedure specifier that can be used to mark where the error happened

Member Function/Subroutine Documentation

◆ destroy()

procedure la_state_type::la_state::destroy ( class(la_state), intent(inout)  this)

Cleanup.

◆ error()

procedure la_state_type::la_state::error ( class(la_state), intent(in)  this)

Check if the current state is an error state.

◆ handle()

procedure la_state_type::la_state::handle ( class(la_state), intent(in)  ierr,
type(la_state), intent(out), optional  ierr_out 
)

Error handling.

◆ new_state()

pure type(la_state) function la_state_type::la_state::new_state ( character(len=*), intent(in)  where_at,
integer, intent(in)  flag,
class(*), dimension(..), intent(in), optional  a1,
class(*), dimension(..), intent(in), optional  a2,
class(*), dimension(..), intent(in), optional  a3,
class(*), dimension(..), intent(in), optional  a4,
class(*), dimension(..), intent(in), optional  a5,
class(*), dimension(..), intent(in), optional  a6,
class(*), dimension(..), intent(in), optional  a7,
class(*), dimension(..), intent(in), optional  a8,
class(*), dimension(..), intent(in), optional  a9,
class(*), dimension(..), intent(in), optional  a10,
class(*), dimension(..), intent(in), optional  a11,
class(*), dimension(..), intent(in), optional  a12,
class(*), dimension(..), intent(in), optional  a13,
class(*), dimension(..), intent(in), optional  a14,
class(*), dimension(..), intent(in), optional  a15,
class(*), dimension(..), intent(in), optional  a16,
class(*), dimension(..), intent(in), optional  a17,
class(*), dimension(..), intent(in), optional  a18,
class(*), dimension(..), intent(in), optional  a19,
class(*), dimension(..), intent(in), optional  a20 
)

Error creation message, with location location.

Parameters
[in]where_atLocation
[in]flagInput error flag
[in]a1Optional rank-agnostic arguments
[in]a2Optional rank-agnostic arguments
[in]a3Optional rank-agnostic arguments
[in]a4Optional rank-agnostic arguments
[in]a5Optional rank-agnostic arguments
[in]a6Optional rank-agnostic arguments
[in]a7Optional rank-agnostic arguments
[in]a8Optional rank-agnostic arguments
[in]a9Optional rank-agnostic arguments
[in]a10Optional rank-agnostic arguments
[in]a11Optional rank-agnostic arguments
[in]a12Optional rank-agnostic arguments
[in]a13Optional rank-agnostic arguments
[in]a14Optional rank-agnostic arguments
[in]a15Optional rank-agnostic arguments
[in]a16Optional rank-agnostic arguments
[in]a17Optional rank-agnostic arguments
[in]a18Optional rank-agnostic arguments
[in]a19Optional rank-agnostic arguments
[in]a20Optional rank-agnostic arguments

◆ new_state_nowhere()

pure type(la_state) function la_state_type::la_state::new_state_nowhere ( integer, intent(in)  flag,
class(*), dimension(..), intent(in), optional  a1,
class(*), dimension(..), intent(in), optional  a2,
class(*), dimension(..), intent(in), optional  a3,
class(*), dimension(..), intent(in), optional  a4,
class(*), dimension(..), intent(in), optional  a5,
class(*), dimension(..), intent(in), optional  a6,
class(*), dimension(..), intent(in), optional  a7,
class(*), dimension(..), intent(in), optional  a8,
class(*), dimension(..), intent(in), optional  a9,
class(*), dimension(..), intent(in), optional  a10,
class(*), dimension(..), intent(in), optional  a11,
class(*), dimension(..), intent(in), optional  a12,
class(*), dimension(..), intent(in), optional  a13,
class(*), dimension(..), intent(in), optional  a14,
class(*), dimension(..), intent(in), optional  a15,
class(*), dimension(..), intent(in), optional  a16,
class(*), dimension(..), intent(in), optional  a17,
class(*), dimension(..), intent(in), optional  a18,
class(*), dimension(..), intent(in), optional  a19,
class(*), dimension(..), intent(in), optional  a20 
)

Error creation message, from N input variables (numeric or strings)

Parameters
[in]flagInput error flag
[in]a1Optional rank-agnostic arguments
[in]a2Optional rank-agnostic arguments
[in]a3Optional rank-agnostic arguments
[in]a4Optional rank-agnostic arguments
[in]a5Optional rank-agnostic arguments
[in]a6Optional rank-agnostic arguments
[in]a7Optional rank-agnostic arguments
[in]a8Optional rank-agnostic arguments
[in]a9Optional rank-agnostic arguments
[in]a10Optional rank-agnostic arguments
[in]a11Optional rank-agnostic arguments
[in]a12Optional rank-agnostic arguments
[in]a13Optional rank-agnostic arguments
[in]a14Optional rank-agnostic arguments
[in]a15Optional rank-agnostic arguments
[in]a16Optional rank-agnostic arguments
[in]a17Optional rank-agnostic arguments
[in]a18Optional rank-agnostic arguments
[in]a19Optional rank-agnostic arguments
[in]a20Optional rank-agnostic arguments

◆ ok()

procedure la_state_type::la_state::ok ( class(la_state), intent(in)  this)

State properties.

◆ print()

procedure la_state_type::la_state::print ( class(la_state), intent(in)  this)

Print error message.

◆ print_msg()

procedure la_state_type::la_state::print_msg ( class(la_state), intent(in)  this)

Formatted message.

Member Data Documentation

◆ message

character(len=msg_length) la_state_type::la_state::message = repeat(' ', MSG_LENGTH)

Message associated to the current state.

◆ state

integer(ilp) la_state_type::la_state::state = LINALG_SUCCESS

The current exit state.

◆ where_at

character(len=name_length) la_state_type::la_state::where_at = repeat(' ', NAME_LENGTH)

Location of the state change.


The documentation for this interface was generated from the following file: