screen_io_m Module

parameter and routines usefule for screen I/O



Functions

public function get_stdout()

Returns the stdout in PARALLAX

Arguments

None

Return Value integer

public function get_stderr()

Returns the stdout in PARALLAX

Arguments

None

Return Value integer


Subroutines

public subroutine set_stdout(new_unit)

Redirects the stdout in PARALLAX to the given unit

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: new_unit

Unit the output is redirected to

public subroutine set_stderr(new_unit)

Redirects the stderr in PARALLAX to the given unit

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: new_unit

Unit the output is redirected to

public subroutine progress_bar(i, n, nsteps)

prints a progress bar for loops to screen

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: i

position of progress bar, e.g. loop index

integer, intent(in) :: n

final index of loop

integer, intent(in) :: nsteps

number of steps at which a single 'bar' is printed

public subroutine nf90_handle_err(istatus, subroutine_name)

Checks for NetCDF errors and prints a standardized error message

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: istatus

Status integer returned by the NetCDF function

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

Name of the subroutine that called the NetCDF function