Skip to content

Uninitialised XFT variable causing inconsistencies in mod_def files #1540

@ukmo-daisybrown

Description

@ukmo-daisybrown

Describe the bug
In w3iogrmd, a variable named XFT is written to the model definition file mod_def.ww3 (line 1258). XFT is defined in w3gridmd, but it only seems to get set an initial value if ST2 flag is set (line 3521).

On the GNU compiler on our Cray EX supercomputers, this causes it to be assigned to unpredictable small values for some regression tests, leading them to show inconsequential differences (e.g. ukmo-waves/WW3#52) in mod_def output.

Please note only mod_def files seem to be affected by this issue.

Hopefully the fix is as simple as just initialising it to something outside an ST2 switch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions