Loading...
Searching...
No Matches
output Module Reference

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


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

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