Discussion Overview
The discussion revolves around the use of the KIND attribute in FORTRAN, particularly in relation to defining integer types with specific sizes. Participants explore the limitations and options available for specifying integer kinds in different compilers.
Discussion Character
- Technical explanation
- Debate/contested
Main Points Raised
- One participant expresses difficulty using KIND with integers greater than 4 and seeks clarification on the correct usage.
- Another participant suggests that the KIND keyword may only apply to REAL variables and mentions specific storage sizes for integers using INTEGER* notation.
- A third participant shares an example from a CFD code, illustrating the use of SELECTED_INT_KIND and how it is implemented in a module for defining precision.
- There is a mention that KIND values are compiler specific, which some participants find frustrating, but they acknowledge that this is part of the standard.
- Another participant highlights the advantage of using a module for defining precision, allowing for easier adjustments when porting code to different architectures.
Areas of Agreement / Disagreement
Participants express differing views on the applicability of the KIND keyword to integers, with some suggesting it is limited while others provide examples of its use. The discussion does not reach a consensus on the best approach or the limitations of KIND for integers.
Contextual Notes
Participants note that the behavior of KIND may vary by compiler, and there are unresolved questions regarding the specifics of integer kind declarations.