MODULE Logical_ConstantsΒΆ

Module Logical_Constants exports logical constants of kind lgl.

The logical kind type lgl is defined in module Select_Parameters.

By using logical values as defined in this module, all problems associated with the conversion of logical literal values in STATPACK can be totally avoided.

Note, finally, that the code of module Logical_Constants is in the source file Modules_Constants.F90

Here is the list of the public constants exported by module Logical_Constants:

!
! LOGICAL CONSTANTS OF KIND lgl.
!
logical(lgl), parameter ::    &
    true  = .true._lgl,       &
    false = .false._lgl

In order to use one of these constants, you must include an appropriate use Logical_Constants or use Statpack statement in your Fortran program, like:

use Logical_Constants, only: true

or:

use Statpack, only: true
Flag Counter