FPT and WinFPT Reference Manual - Command-line Commands
| SimCon Home | Reference Manual Home |
Syntax:
[DO NOT] SHOW KINDS |
Function:
FPT lists the logical, integer and real kinds which have been used in the code. For each kind used, fpt shows:
The data size, which is the number of bytes (or machine units) which an object of the kind occupies. The number of symbols explicitly declared to be of the kind. The number of symbols of the kind which have no explicit kind declaration (A type declaration may be present). The number of literal values (i.e. numbers, .TRUE. or .FALSE. values or character strings) of the kind which have kind tags. The number of literal values of the kind which do not have kind tags. These include values which default to the kind,
or where the kind is implied by an exponent character as, for example, in 1.0D+01. The name of the integer parameter which FPT will use if it adds additional declarations of the kind. This is set up
by the command DEFINE KIND.
If no kind is specified for a symbol fpt infers the kind from the current IMPLICIT type rules and the kinds and data sizes declared by the commands DEFAULT SIZE , CHANGE SIZE and DEFINE KIND.
Where to use these commands:
Operating system command line |
Yes |
|
Configuration file, config.fsp |
Yes |
|
Specification (FSP) files, *.fsp |
Yes |
|
Interactively, to FPT> prompt: |
Yes |
|
Interactive command files |
Yes |
|
Embedded in the Fortran code |
No |
|
Example:
The data kinds used in the major climate and weather modelling code, WRF V3.4.1 are:
FPT> show kinds
Logical Kinds
=============
Value Size Symbols Literals Name
Declared Undecl Tagged Untagged
4 4 0 2480 0 8348 KL4
Integer Kinds
=============
Value Size Symbols Literals Name
Declared Undecl Tagged Untagged
1 1 10 0 0 0 KI1
2 2 8 0 0 0 KI2
4 4 927 48387 65 172745 KI4
8 8 97 41 78 0 KI8
Real/Complex Kinds
==================
Value Real Symbols Literals Name
size Declared Undecl Tagged Untagged
4 4 2102 50924 14520 121081 KR4
8 8 7049 860 2415 726 KR8
Copyright ©1995 to 2014 Software Validation Ltd. All rights reserved.