Loading...
Searching...
No Matches

Definition

Integer property dedicated to manipulating the output unit.

Examples

type(output) :: prop
integer :: unit
unit = prop
if (unit /= stdout) stop

Remarks

The default value corresponds to the standard error stdout.

Constructors

Initializes a new instance of the output class

output()

type(output) :: o 

Examples

use benchmark_output_unit
type(output) :: o

Remarks

Definition at line 41 of file OutputUnit.f90.


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

Private Member Functions

procedure, pass, private iprop_equals_int (lhs, rhs)
 Overloading of the assigment procedure.
procedure, pass, private int_equals_iprop (lhs, rhs)
 Overloading of the assigment procedure.

Methods

◆ assignment() [1/2]

generic, public assignment ( class(output), intent(inout) lhs,
integer, intent(in) rhs )

Overloading of the assigment procedure.

Parameters
[in,out]lhsThe output variable
[in]rhsInteger value

Examples

The following example uses the assigment(\=) the set the value of the output unit

type(output) :: prop
integer :: unit = 15
prop = unit
if (output_unit /= 15) stop

Remarks

The value of lhs is not used and only the static variable output will be used.

Definition at line 46 of file OutputUnit.f90.

◆ assignment() [2/2]

generic, public assignment ( integer, intent(inout) lhs,
class(output), intent(in) rhs )

Overloading of the assigment procedure.

Parameters
[in,out]lhsInteger value
[in]rhsThe output variable

Examples

The following example uses the assigment(\=) the set the value of the output unit

type(output) :: prop
integer :: unit
unit = prop
if (unit /= stdout) stop

Remarks

The value of rhs is not used and only the static variable output will be used.

Definition at line 46 of file OutputUnit.f90.

◆ int_equals_iprop()

procedure, pass, private int_equals_iprop ( integer, intent(inout) lhs,
class(output), intent(in) rhs )
private

Overloading of the assigment procedure.

Parameters
[in,out]lhsInteger value
[in]rhsThe output variable

Examples

The following example uses the assigment(\=) the set the value of the output unit

type(output) :: prop
integer :: unit
unit = prop
if (unit /= stdout) stop

Remarks

The value of rhs is not used and only the static variable output will be used.

Definition at line 45 of file OutputUnit.f90.

◆ iprop_equals_int()

procedure, pass, private iprop_equals_int ( class(output), intent(inout) lhs,
integer, intent(in) rhs )
private

Overloading of the assigment procedure.

Parameters
[in,out]lhsThe output variable
[in]rhsInteger value

Examples

The following example uses the assigment(\=) the set the value of the output unit

type(output) :: prop
integer :: unit = 15
prop = unit
if (output_unit /= 15) stop

Remarks

The value of lhs is not used and only the static variable output will be used.

Definition at line 44 of file OutputUnit.f90.