Loading...
Searching...
No Matches
Output_Unit

Definition

Output unit module.

Data Types

type  output
 Integer property dedicated to manipulating the output unit. More...

Variables

◆ output_unit

integer, public output_unit = stdout

Static variable controling the output unit number.

Definition at line 13 of file OutputUnit.f90.

Methods

◆ int_equals_iprop()

subroutine 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 100 of file OutputUnit.f90.

◆ iprop_equals_int()

subroutine iprop_equals_int ( 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 72 of file OutputUnit.f90.