Skip to content

Fix RBF interpolation warnings #1349

Description

@msimberg

RBF interpolation warns about

/icon4py/model/common/src/icon4py/model/common/interpolation/rbf_interpolation.py:182: RuntimeWarning: invalid value encountered in divide

and

/icon4py/model/common/src/icon4py/model/common/interpolation/interpolation_fields.py:358: RuntimeWarning: divide by zero encountered in divide

These are harmless and have been there since the RBF interpolation has been implemented. These warnings are triggered by the invalid neighbor indices and don't contribute to the final result. However, they are very annoying and are printed whenever someone is running e.g. standalone driver. We should at least silence them, if not fully fix them (avoid the problem in the first place).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions