Skip to content

Commit

Permalink
revert formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
halungge committed May 30, 2024
1 parent c14d384 commit 78c9e1d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 48 deletions.
28 changes: 4 additions & 24 deletions model/common/src/icon4py/model/common/grid/icon.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,35 +70,15 @@ def __init__(self, id_: uuid.UUID):
"E2V": (self._get_offset_provider, E2VDim, EdgeDim, VertexDim),
"C2E2C": (self._get_offset_provider, C2E2CDim, CellDim, CellDim),
"C2E2C2E": (self._get_offset_provider, C2E2C2EDim, CellDim, EdgeDim),
"E2EC": (
self._get_offset_provider_for_sparse_fields,
E2CDim,
EdgeDim,
ECDim,
),
"E2EC": (self._get_offset_provider_for_sparse_fields, E2CDim, EdgeDim, ECDim),
"C2E2CO": (self._get_offset_provider, C2E2CODim, CellDim, CellDim),
"E2C2V": (self._get_offset_provider, E2C2VDim, EdgeDim, VertexDim),
"V2E": (self._get_offset_provider, V2EDim, VertexDim, EdgeDim),
"V2C": (self._get_offset_provider, V2CDim, VertexDim, CellDim),
"C2V": (self._get_offset_provider, C2VDim, CellDim, VertexDim),
"E2ECV": (
self._get_offset_provider_for_sparse_fields,
E2C2VDim,
EdgeDim,
ECVDim,
),
"C2CEC": (
self._get_offset_provider_for_sparse_fields,
C2E2CDim,
CellDim,
CECDim,
),
"C2CE": (
self._get_offset_provider_for_sparse_fields,
C2EDim,
CellDim,
CEDim,
),
"E2ECV": (self._get_offset_provider_for_sparse_fields, E2C2VDim, EdgeDim, ECVDim),
"C2CEC": (self._get_offset_provider_for_sparse_fields, C2E2CDim, CellDim, CECDim),
"C2CE": (self._get_offset_provider_for_sparse_fields, C2EDim, CellDim, CEDim),
"E2C2E": (self._get_offset_provider, E2C2EDim, EdgeDim, EdgeDim),
"E2C2EO": (self._get_offset_provider, E2C2EODim, EdgeDim, EdgeDim),
"Koff": (lambda: KDim,), # Koff is a special case
Expand Down
28 changes: 4 additions & 24 deletions model/common/src/icon4py/model/common/grid/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,33 +413,13 @@ def __init__(self):
"E2C": (self._get_offset_provider, E2CDim, EdgeDim, CellDim),
"E2V": (self._get_offset_provider, E2VDim, EdgeDim, VertexDim),
"E2C2V": (self._get_offset_provider, E2C2VDim, EdgeDim, VertexDim),
"C2CE": (
self._get_offset_provider_for_sparse_fields,
C2EDim,
CellDim,
CEDim,
),
"C2CE": (self._get_offset_provider_for_sparse_fields, C2EDim, CellDim, CEDim),
"Koff": (lambda: KDim,), # Koff is a special case
"C2E2C2E": (self._get_offset_provider, C2E2C2EDim, CellDim, EdgeDim),
"C2E2C2E2C": (self._get_offset_provider, C2E2C2E2CDim, CellDim, CellDim),
"E2ECV": (
self._get_offset_provider_for_sparse_fields,
E2C2VDim,
EdgeDim,
ECVDim,
),
"E2EC": (
self._get_offset_provider_for_sparse_fields,
E2CDim,
EdgeDim,
ECDim,
),
"C2CEC": (
self._get_offset_provider_for_sparse_fields,
C2E2CDim,
CellDim,
CECDim,
),
"E2ECV": (self._get_offset_provider_for_sparse_fields, E2C2VDim, EdgeDim, ECVDim),
"E2EC": (self._get_offset_provider_for_sparse_fields, E2CDim, EdgeDim, ECDim),
"C2CEC": (self._get_offset_provider_for_sparse_fields, C2E2CDim, CellDim, CECDim),
"C2CECEC": (
self._get_offset_provider_for_sparse_fields,
C2E2C2E2CDim,
Expand Down

0 comments on commit 78c9e1d

Please sign in to comment.