Skip to content

Use literals in double precision #12

@tenomoto

Description

@tenomoto

Unlike Python, the type of a numeric literal is implicitly assumed. Float literals are assumed to be real*4. We need to either explicitly add a type like tref = 288.0_p or promote all floats without type specification with a command line option -fdefault-real-8. With tref = 288.0, tref is declared to be real(p), but an imprecise value of real*4 is assigned without _p after the literal or without the option.

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