Judge optional control parameters. More...
Data Types | |
| interface | present_and_eq |
| interface | present_and_ne |
| interface | present_select |
Functions/Subroutines | |
| logical function, public | present_and_true (arg) |
| logical function, public | present_and_false (arg) |
| logical function, public | present_and_zero (arg) |
| logical function, public | present_and_nonzero (arg) |
| logical function, public | present_and_not_empty (arg) |
Judge optional control parameters.
Important
This file is generated from ../../../../src/dc_utils/dc_present.erb by ERB included Ruby 3.3.8. Please do not edit this file directly.
This module provides utility functions for checking optional arguments. These functions check whether an optional argument is present and whether it satisfies certain conditions (true, false, zero, equal to a value, etc.).
| Procedure | Description |
|---|---|
| present_and_true | Returns .true. if arg is present and .true. |
| present_and_false | Returns .true. if arg is present and .false. |
| present_and_zero | Returns .true. if arg is present and equals zero |
| present_and_nonzero | Returns .true. if arg is present and not zero |
| present_and_eq | Returns .true. if arg is present and equals val |
| present_and_ne | Returns .true. if arg is present and not equals val |
| present_and_not_empty | Returns .true. if arg is present and not empty string |
| present_select | Returns the first valid optional argument or default |
| logical function, public dc_present::present_and_false | ( | logical, intent(in), optional | arg | ) |
Check if arg is present and false
| [in] | arg | Optional logical argument |
Definition at line 127 of file dc_present.f90.
| logical function, public dc_present::present_and_nonzero | ( | integer, intent(in), optional | arg | ) |
Check if arg is present and non-zero
| [in] | arg | Optional integer argument |
Definition at line 177 of file dc_present.f90.
| logical function, public dc_present::present_and_not_empty | ( | character(len=*), intent(in), optional | arg | ) |
Check if arg is present and not empty string
| [in] | arg | Optional character argument |
Definition at line 375 of file dc_present.f90.
| logical function, public dc_present::present_and_true | ( | logical, intent(in), optional | arg | ) |
Check if arg is present and true
| [in] | arg | Optional logical argument |
Definition at line 102 of file dc_present.f90.
| logical function, public dc_present::present_and_zero | ( | integer, intent(in), optional | arg | ) |
Check if arg is present and zero
| [in] | arg | Optional integer argument |
Definition at line 152 of file dc_present.f90.