Skip to content

real*X is a bug - and some things more in the vicinity #5

@m214089

Description

@m214089

Fortran Standard is clearly stating that the kind numbering is arbitrary and implementation dependent. Best is to go with the basic Fortran types:

real8 as of today and the compilers which support this: double precision (is C interoperable with c_double)
real
4 as of today and the compilers which support this: real (is C interoperable with c_float)

To get Fortran logical working at all you need to define logical always as logical(kind=c_bool) (you can as well use logical(c_bool), which I personally find nicer).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions