libsim  Versione 7.1.6
Tipi di dato | Funzioni/Subroutine | Variabili
Riferimenti per il modulo missing_values

Definitions of constants and functions for working with missing values. Continua...

Tipi di dato

interface  c_e
 Function to check whether a value is missing or not. Continua...
 

Funzioni/Subroutine

elemental logical function, private c_e_b (var)
 Check whether the byte argument is valid. Continua...
 
elemental logical function, private c_e_s (var)
 Check whether the short integer argument is valid. Continua...
 
elemental logical function, private c_e_l (var)
 Check whether the long integer argument is valid. Continua...
 
elemental logical function, private c_e_ll (var)
 Check whether the long long integer argument is valid. Continua...
 
elemental logical function, private c_e_r (var)
 Check whether the real argument is valid. Continua...
 
elemental logical function, private c_e_d (var)
 Check whether the double precision argument is valid. Continua...
 
elemental logical function, private c_e_c (var)
 Check whether the character argument is valid. Continua...
 

Variabili

real, parameter rmiss = HUGE(1.0)
 default single precision real Continua...
 
double precision, parameter dmiss = HUGE(1.0D0)
 default double precision real Continua...
 
real(kind=fp_s), parameter rsmiss = HUGE(1.0_fp_s)
 single precision IEEE real (kind=fp_s) Continua...
 
real(kind=fp_d), parameter rdmiss = HUGE(1.0_fp_d)
 double precision IEEE real (kind=fp_d) Continua...
 
integer, parameter imiss = HUGE(0)
 default integer Continua...
 
integer(kind=int_b), parameter ibmiss = HUGE(0_int_b)
 1-byte integer (kind=int_b) Continua...
 
integer(kind=int_s), parameter ismiss = HUGE(0_int_s)
 2-byte integer (kind=int_s) Continua...
 
integer(kind=int_l), parameter ilmiss = HUGE(0_int_l)
 4-byte integer (kind=int_l) Continua...
 
integer(kind=int_ll), parameter illmiss = HUGE(0_int_ll)
 8-byte integer if supported (kind=int_ll) Continua...
 
character(len=1), parameter cmiss = char(0)
 character (any length) Continua...
 

Descrizione dettagliata

Definitions of constants and functions for working with missing values.

This modules provides tools for handling missing values in various data types. Users should use the various *miss constants for setting a variable to a missing value, and use the interfaced function c_e or an equality test with the corresponding *miss constant for checking the validity of a value.

When using the *miss constants, it is important to choose the constant of the right type in order to avoid implicit conversions that would impair the results.

Example of typical use:

...
INTEGER :: i
INTEGER(kind=int_b) :: ib
REAL :: r
i = imiss
ib = ibmiss
r = rmiss
IF (c_e(i) .OR. c_e(ib)) THEN
print*,"this is not executed"
ENDIF
IF (.NOT.c_e(r)) THEN
print*,"this is executed"
ENDIF
...
Function to check whether a value is missing or not.
Definitions of constants and functions for working with missing values.

Generated with Doxygen.