GRASP rci-qed
Functions/Subroutines
grasp_rciqed_cli Module Reference

Contains routines related to command line input. More...

Functions/Subroutines

integer function getoption (min, max)
 Reads a numeric input from the user and checks that it is within the given range (min <= n <= max). More...
 

Detailed Description

Contains routines related to command line input.

Function/Subroutine Documentation

◆ getoption()

integer function grasp_rciqed_cli::getoption ( integer, intent(in)  min,
integer, intent(in)  max 
)

Reads a numeric input from the user and checks that it is within the given range (min <= n <= max).

It repeatedly asks the user until they give a valid value.

Returns the value supplied by the user.

Here is the caller graph for this function: