Skip to content
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ndsl/dsl/stencil_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def from_dict(cls, data: dict):
class StencilConfig(Hashable):
compare_to_numpy: bool = False
compilation_config: CompilationConfig = CompilationConfig()
dace_config: Optional[DaceConfig] = None
dace_config: DaceConfig = None
Comment thread
romanc marked this conversation as resolved.
Outdated
verbose: bool = False

def __post_init__(self):
Expand Down
11 changes: 10 additions & 1 deletion ndsl/stencils/corners.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import warnings
from typing import Optional, Sequence, Tuple

from gt4py.cartesian import gtscript
from gt4py.cartesian.gtscript import PARALLEL, computation, horizontal, interval, region

from ndsl import StencilFactory
from ndsl.constants import (
X_DIM,
X_INTERFACE_DIM,
Y_DIM,
Y_INTERFACE_DIM,
Z_INTERFACE_DIM,
)
from ndsl.dsl.stencil import GridIndexing, StencilFactory
from ndsl.dsl.stencil import GridIndexing
from ndsl.dsl.typing import FloatField


Expand All @@ -22,6 +24,13 @@ class CopyCorners:

def __init__(self, direction: str, stencil_factory: StencilFactory) -> None:
"""The grid for this stencil"""
warnings.warn(
"Usage of the GT4Py implementation of CopyCorners is discouraged and will"
"be removed in the next release. Use `CopyCornersX` or `CopyCornersY` in PyFV3"
"for a more future-proof implementation of the same code.",
DeprecationWarning,
2,
)
grid_indexing = stencil_factory.grid_indexing

n_halo = grid_indexing.n_halo
Expand Down
Loading