Skip to content

Use of w3emc in GFS_time_vary_pre is not safe - no protection against argument mismatches #1151

@climbfuji

Description

@climbfuji

Description

The way w3emc is used in GFS_time_vary_pre is not safe, since there is no protection against argument mismatches in case the wrong version of the library (e.g., _4 instead of _d) is used. This came up during the debugging of a w3emc build issue with Intel oneAPI ifx.

A detailed description can be found here: JCSDA/spack-stack#1716

The issue also provides a code snippet that protects against using a wrong kind for the integer and real arguments in the w3difdat routines.

Steps to Reproduce

See JCSDA/spack-stack#1716

Additional Context

See JCSDA/spack-stack#1716

Output

See JCSDA/spack-stack#1716

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions