Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lower dim tests #9

Open
wants to merge 4 commits into
base: int_cast_aboslute_k_debug
Choose a base branch
from

Conversation

twicki
Copy link
Owner

@twicki twicki commented Nov 4, 2024

Description

After realizing that there was an issue with lower-dimensional fields in the debug-backend, this PR adds a test to check correctness.

Requirements

Before submitting this PR, please make sure:

  • The code builds cleanly without new errors or warnings
  • The code passes all the existing tests

Copy link
Collaborator

@FlorianDeconinck FlorianDeconinck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Callback is gone, not sure why

):
with computation(PARALLEL):
with interval(0, 1):
out_field[0, 0, 0] = in_field[1]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This truly should fail in my opinion. The default behavior that allows you to not index data dimensions is too magical. We have something showing in GEOS-ESM/NDSL#43 that is around that behavior

@@ -167,9 +167,6 @@ def visit_TemporaryDecl(

VarKOffset = as_fmt("lk + {k}")

def visit_CallbackCall(self, node: npir.CallbackCall) -> Union[str, Collection[str]]:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove because that's the default behavior? Or am I missing something

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants