Manual Reference Pages  - kind (3fortran)

NAME

KIND(3) - [KIND:INQUIRY] Query kind of an entity

SYNOPSIS

result = kind(x)

         integer function kind(x)

type(TYPE(kind=**)),intent(in) :: x(..)

CHARACTERISTICS

o X may be of any intrinsic type. It may be a scalar or an array.
o the result is a default integer scalar

DESCRIPTION

KIND(X)(3) returns the kind value of the entity X.

OPTIONS

o X : Value to query the kind of.

RESULT

The return value indicates the kind of the argument X.

Note that kinds are processor-dependent.

EXAMPLES

Sample program:

    program demo_kind
    implicit none
    integer,parameter :: dc = kind(’ ’)
    integer,parameter :: dl = kind(.true.)

print *, "The default character kind is ", dc print *, "The default logical kind is ", dl

end program demo_kind

Results:

        The default character kind is            1
        The default logical kind is            4

STANDARD

Fortran 95

SEE ALSO

o ALLOCATED(3) - Status of an allocatable entity
o IS_CONTIGUOUS(3) - test if object is contiguous
o LBOUND(3) - Lower dimension bounds of an array
o RANK(3) - Rank of a data object
o SHAPE(3) - Determine the shape of an array
o SIZE(3) - Determine the size of an array
o UBOUND(3) - Upper dimension bounds of an array
o BIT_SIZE(3) - Bit size inquiry function
o STORAGE_SIZE(3) - Storage size in bits
o KIND(3) - Kind of an entity
fortran-lang intrinsic descriptions (license: MIT) @urbanjost


Nemo Release 3.1 kind (3fortran) April 28, 2024
Generated by manServer 1.08 from b78d7e5d-631c-41c4-88a0-43d5024a29eb using man macros.